[instructions] Sync github-agentic-workflows.md with v0.40.1#19470
Merged
[instructions] Sync github-agentic-workflows.md with v0.40.1#19470
Conversation
- Add `issues` and `pull-requests` fields to `add-comment` config (parallel to existing `discussions` field for permission exclusion) - Add `allow-empty` field to `create-pull-request` config - Clarify `fallback-as-issue` behavior: on permission errors, fallback issue now includes a one-click link to create the PR via compare URL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instructions Update - Synchronized with v0.40.1
This PR updates
github-agentic-workflows.mdbased on code audit against the v0.40.1 release state.Changes Made
add-comment: Addedissuesandpull-requestspermission control fields (parallel to existingdiscussions: falsepattern). These allow workflows using custom GitHub App tokens to excludeissues:writeorpull-requests:writepermissions when not needed.create-pull-request: Addedallow-emptyfield (allows creating a PR with an empty branch without requiring an initial patch — useful for preparing feature branches).create-pull-request: Clarifiedfallback-as-issuecomment to reflect that on permission errors, the fallback issue now includes a one-click compare URL link so users can manually create the PR.Documentation Commits Reviewed
99b2107create_pull_request: create fallback issue with one-click PR link on permission errorValidation
pkg/workflow/add_comment.go,pkg/parser/schemas/main_workflow_schema.json,actions/setup/js/create_pull_request.cjs)