[instructions] Sync github-agentic-workflows.md with v0.40.1#20609
Merged
[instructions] Sync github-agentic-workflows.md with v0.40.1#20609
Conversation
Document compile-time warnings for push-to-pull-request-branch with target: "*" and add the checkout fetch: field that was missing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pelikhan
approved these changes
Mar 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Agentic Workflows documentation to describe additional checkout fetching options and to document compiler warnings/recommended configuration when enabling push-to-PR-branch automation across all PRs (target: "*").
Changes:
- Documented
checkout.fetchas a supported checkout option for fetching additional refs after checkout. - Added guidance and an example explaining compile-time warnings and recommended constraints when
safe-outputs.push-to-pull-request-branch.target: "*"is used.
💡 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.
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 the single documentation-relevant commit since the v0.40.1 release.Changes Made
Added
fetch:field tocheckout:documentation — Thefetcharray field existed inCheckoutConfigbut was not documented. It supports fetching all remote branches ("*"), open PR refs ("refs/pulls/open/*"), branch names, and glob patterns.Added compile-time warning guidance for
push-to-pull-request-branch: target: "*"— Whentarget: "*"is configured, the compiler now emits warnings in two cases:fetch: ["*"]) — required so the agent can access all PR branches at runtimetitle-prefixorlabelsconstraints are set — recommended to restrict which PRs can receive pushesThe new section includes a minimal recommended example combining both fixes.
Documentation Commits Reviewed
0739647Add compile-time warnings for push-to-pull-request-branch with target: "*" (Add compile-time warnings for push-to-pull-request-branch with target: "*" #20580)Validation
push_to_pull_request_branch_validation.go,checkout_manager.go)