Skip to content

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

Merged
pelikhan merged 2 commits intomainfrom
instructions/sync-v0.40.1-dcfb0cf542a4f77a
Mar 7, 2026
Merged

[instructions] Sync github-agentic-workflows.md with v0.40.1#19902
pelikhan merged 2 commits intomainfrom
instructions/sync-v0.40.1-dcfb0cf542a4f77a

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 github-agentic-workflows.md based on a code-vs-instructions audit performed since the last release.

Changes Made

  • Added skip-if-match and skip-if-no-match to the on: field documentation. Both fields are defined in pkg/parser/schemas/main_workflow_schema.json and implemented in pkg/workflow/stop_after.go + pkg/workflow/compiler_pre_activation_job.go, but were entirely absent from the instructions file.

Documentation Commits Reviewed

  • 7e32c82 [dead-code] chore: remove 10 dead functions from analyzer batch run — no docs changes, Go-only

Validation

  • Followed prompting best practices (imperative mood, minimal examples)
  • Maintained technical tone and brevity
  • Updated only necessary sections
  • Verified accuracy against current codebase (main_workflow_schema.json, stop_after.go)
  • Removed outdated or redundant content (none found)

Generated by Instructions Janitor ·

  • expires on Mar 8, 2026, 11:57 PM UTC

Add missing `skip-if-match` and `skip-if-no-match` fields from the
`on:` section. Both fields exist in the JSON schema and compiler code
but were absent from the instructions file.

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 7, 2026 01:14
Copilot AI review requested due to automatic review settings March 7, 2026 01:14
@pelikhan pelikhan merged commit c508029 into main Mar 7, 2026
@pelikhan pelikhan deleted the instructions/sync-v0.40.1-dcfb0cf542a4f77a branch March 7, 2026 01:14
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 agentic workflows instruction documentation to reflect newly supported on: frontmatter fields introduced/available in v0.40.1.

Changes:

  • Documented on.skip-if-match (string/object) with examples and threshold behavior.
  • Documented on.skip-if-no-match (string/object) with examples and threshold behavior.
Comments suppressed due to low confidence (1)

.github/aw/github-agentic-workflows.md:108

  • The summary wording here is inaccurate for the object form: the workflow is skipped when the search result count is below the configured min threshold (default 1), not only when there are "no results". Consider rephrasing to "...when a search query returns fewer than min results" to match the implementation (totalCount < min).
  - **`skip-if-no-match:`** - Skip workflow execution when a GitHub search query returns no results (string or object)

💡 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.

- **`skip-bots:`** - Skip workflow execution when triggered by specific GitHub actors (array)
- Bot name matching is flexible (handles with/without `[bot]` suffix)
- Example: `skip-bots: [dependabot, renovate]` - Skip for Dependabot and Renovate
- **`skip-if-match:`** - Skip workflow execution when a GitHub search query returns results (string or object)
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

The summary wording here is inaccurate for the object form: the workflow is skipped only when the search result count meets/exceeds the configured max threshold (default 1), not whenever it merely "returns results". Consider rephrasing to something like "...when a search query returns at least max results" to match the implementation (totalCount >= max).

This issue also appears on line 108 of the same file.

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