Repository navigation
Clarify PR branch target errors in scheduled runs - #65066
Conversation
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
There was a problem hiding this comment.
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.
|
@copilot Branch refresh has been requested for this PR. Please verify the updated branch state and run the
|
Verified the refreshed branch at |
|
@copilot Please take another pass on this PR. Please refresh the branch if needed, address any outstanding review feedback, and then run the Generated by PR Sous Chef for #65066: Clarify PR branch target errors in scheduled runs
|
Verified the branch is current at |
|
🎉 This pull request is included in a new release. Release: |
A scheduled run has no triggering pull request. When
push-to-pull-request-branchuses its defaulttarget: triggering, supplyingpull_request_numberin the safe output message does not override that configuration; the existing error did not explain this distinction.triggeringcannot resolve a PR on a schedule and direct callers to configuretarget: '*'and supplypull_request_number.target: triggering.Run: https://github.com/github/gh-aw/actions/runs/37041488340