Skip to content

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

Merged
pelikhan merged 1 commit intomainfrom
instructions/sync-v0.40.1-e1c7c87acc02d636
Mar 12, 2026
Merged

[instructions] Sync github-agentic-workflows.md with v0.40.1#20609
pelikhan merged 1 commit intomainfrom
instructions/sync-v0.40.1-e1c7c87acc02d636

Conversation

@github-actions
Copy link
Contributor

Instructions Update - Synchronized with v0.40.1

This PR updates github-agentic-workflows.md based on the single documentation-relevant commit since the v0.40.1 release.

Changes Made

  • Added fetch: field to checkout: documentation — The fetch array field existed in CheckoutConfig but 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: "*" — When target: "*" is configured, the compiler now emits warnings in two cases:

    1. Checkout does not include a wildcard fetch pattern (fetch: ["*"]) — required so the agent can access all PR branches at runtime
    2. No title-prefix or labels constraints are set — recommended to restrict which PRs can receive pushes

    The new section includes a minimal recommended example combining both fixes.

Documentation Commits Reviewed

Validation

  • Followed prompting best practices (imperative mood, minimal examples)
  • Maintained technical tone and brevity
  • Updated only necessary sections
  • Verified accuracy against current codebase (push_to_pull_request_branch_validation.go, checkout_manager.go)
  • Removed outdated or redundant content (no removals needed)

Generated by Instructions Janitor ·

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

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>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation instructions labels Mar 11, 2026
@pelikhan pelikhan marked this pull request as ready for review March 12, 2026 00:05
Copilot AI review requested due to automatic review settings March 12, 2026 00:05
@pelikhan pelikhan merged commit 98a8737 into main Mar 12, 2026
@pelikhan pelikhan deleted the instructions/sync-v0.40.1-e1c7c87acc02d636 branch March 12, 2026 00:05
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 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.fetch as 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.

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