Skip to content

Clarify PR branch target errors in scheduled runs - #65066

Merged
pelikhan merged 6 commits into
mainfrom
copilot/fix-push-to-pull-request-handler
Oct 2, 2026
Merged

pelikhan merged 6 commits into
mainfrom
copilot/fix-push-to-pull-request-handler

Conversation

Copilot AI commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

A scheduled run has no triggering pull request. When push-to-pull-request-branch uses its default target: triggering, supplying pull_request_number in the safe output message does not override that configuration; the existing error did not explain this distinction.

  • Error guidance: Explain why triggering cannot resolve a PR on a schedule and direct callers to configure target: '*' and supply pull_request_number.
  • Regression coverage: Check the error when a scheduled run supplies a PR number but remains configured with target: triggering.
safe-outputs:
  push-to-pull-request-branch:
    target: '*'

Run: https://github.com/github/gh-aw/actions/runs/37041488340

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 18.3 AIC · ⌖ 8.67 AIC · ⊞ 9.7K · ◷
Comment /souschef to run again

Copilot AI changed the title [WIP] Fix push_to_pull_request_branch handler for explicit targets Clarify PR branch target errors in scheduled runs Oct 2, 2026
Copilot AI requested a review from pelikhan October 2, 2026 17:19
@pelikhan
pelikhan marked this pull request as ready for review October 2, 2026 17:26
Copilot AI balanced review requested due to automatic review settings October 2, 2026 17:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused error-message update is accurate, actionable, and covered by a representative regression test.

Review effort: Balanced
Findings: None

What changed in this PR

Clarifies configuration guidance when scheduled runs use the default triggering PR target.

Changes:

  • Expands the error with actionable target: '*' guidance.
  • Adds regression coverage for an explicitly supplied PR number.
File Description
actions/​setup/​js/​push_to_pull_request_branch.cjs Improves missing PR-context error guidance.
actions/​setup/​js/​push_to_pull_request_branch.test.cjs Verifies scheduled-run guidance and behavior.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot Branch refresh has been requested for this PR. Please verify the updated branch state and run the pr-finisher skill before handing off.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 18.3 AIC · ⌖ 8.67 AIC · ⊞ 9.7K · ◷
Comment /souschef to run again

Copilot AI commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Branch refresh has been requested for this PR. Please verify the updated branch state and run the pr-finisher skill before handing off.

Generated by [👨‍🍳 PR Sous Chef](https://gi...

Verified the refreshed branch at 102001a and completed the pr-finisher checks; no additional changes were needed.

Copilot AI requested a review from gh-aw-bot October 2, 2026 18:03
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot Please take another pass on this PR. Please refresh the branch if needed, address any outstanding review feedback, and then run the pr-finisher skill before handing back to maintainers.

Generated by PR Sous Chef for #65066: Clarify PR branch target errors in scheduled runs

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 27.1 AIC · ⌖ 8.64 AIC · ⊞ 9.7K · ◷
Comment /souschef to run again

Copilot AI commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please take another pass on this PR. Please refresh the branch if needed, address any outstanding review feedback, and then run the pr-finisher skill before handing back to maintainers.

Ge...

Verified the branch is current at 102001a, includes the latest PR base, and has no outstanding review threads. Local validation passed; the PR Sous Chef run succeeded, while the Copilot check is still running and reviewer action remains pending.

@pelikhan
pelikhan merged commit 81ebe87 into main Oct 2, 2026
11 checks passed
@pelikhan
pelikhan deleted the copilot/fix-push-to-pull-request-handler branch October 2, 2026 20:16
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.90.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

push_to_pull_request_branch: explicit target not consumed; error names the "triggering" default instead

4 participants