Skip to content

[instructions] Sync github-agentic-workflows.md with release v0.40.1#19777

Merged
pelikhan merged 2 commits intomainfrom
instructions-sync-v0.40.1-92993d782c405c0e
Mar 6, 2026
Merged

[instructions] Sync github-agentic-workflows.md with release v0.40.1#19777
pelikhan merged 2 commits intomainfrom
instructions-sync-v0.40.1-92993d782c405c0e

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 6, 2026

Instructions Update - Synchronized with v0.40.1

This PR updates the github-agentic-workflows.md instructions file based on a code audit of safe-outputs behavior since the last release.

Changes Made

  • Corrected activation-comments placement: Moved from the messages: sub-list to a top-level safe-outputs: global property, matching the JSON schema (main_workflow_schema.json) and parsing code (safe_outputs_config.go). The field was incorrectly documented as a message type, but it is parsed from the top-level safe-outputs map — not from messages.

Documentation Commits Reviewed

  • b28e620 fix: update wasm golden files for action pin changes (no docs impact)

Code Files Audited

  • pkg/workflow/compiler_types.go — SafeOutputsConfig struct
  • pkg/workflow/safe_outputs_config.go — activation-comments parsed at top level, stored in Messages field
  • pkg/parser/schemas/main_workflow_schema.json — activation-comments is a top-level safe-outputs property; not present under messages

Validation

  • Followed prompting best practices (imperative mood, minimal examples)
  • Maintained technical tone and brevity
  • Updated only necessary sections
  • Verified accuracy against current codebase (JSON schema + Go parser)
  • Removed outdated or redundant content

Generated by Instructions Janitor ·

  • expires on Mar 8, 2026, 12:04 AM UTC

… property

The activation-comments field was incorrectly documented under the
messages: section. Per the JSON schema and parsing code, it is a
top-level safe-outputs property — not a messages sub-field.

Removes it from the messages list and adds it as a standalone
top-level safe-outputs global configuration entry with accurate
description of its boolean/expression semantics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation instructions labels Mar 6, 2026
@pelikhan pelikhan marked this pull request as ready for review March 6, 2026 02:53
Copilot AI review requested due to automatic review settings March 6, 2026 02:53
@pelikhan pelikhan merged commit f3eff92 into main Mar 6, 2026
@pelikhan pelikhan deleted the instructions-sync-v0.40.1-92993d782c405c0e branch March 6, 2026 02:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the instructions documentation to reflect the current safe-outputs.activation-comments configuration shape/behavior as of release v0.40.1.

Changes:

  • Removes activation-comments from the safe-outputs.messages message-type list.
  • Documents activation-comments as a top-level safe-outputs property (boolean / expression) with updated description.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1036 to +1037
- `activation-comments:` - Disable all activation and fallback comments (boolean or expression, default: `true`)
- When `false`, disables run-started, run-success, run-failure, and PR/issue creation link comments
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The summary line for activation-comments is misleading: it says "Disable all activation and fallback comments" while also stating the default is true. Per the schema/go parsing, activation-comments defaults to enabled and only disables when set to false/"false". Consider rephrasing the first line to reflect that it enables activation comments by default (or that setting it to false disables them), to avoid reading as a disable-flag that’s on by default.

Suggested change
- `activation-comments:` - Disable all activation and fallback comments (boolean or expression, default: `true`)
- When `false`, disables run-started, run-success, run-failure, and PR/issue creation link comments
- `activation-comments:` - Control activation and fallback comments (boolean or expression, default: `true` — comments enabled)
- When `false`, disables run-started, run-success, run-failure, and PR/issue creation link comments; when `true` (default), these comments are enabled

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation instructions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants