Repository navigation
Fail add-comment when the triggering target cannot be resolved - #65068
Conversation
Co-authored-by: pelikhan <[email protected]>
This reverts commit 3ee0e4f. Co-authored-by: pelikhan <[email protected]>
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 change preserves explicit-target behavior and adequately tests the corrected failure path.
Review effort: Balanced
Findings: None
What changed in this PR
Makes unresolved triggering targets fatal for add-comment, preventing false-green workflows.
Changes:
- Returns an actionable failure instead of skipping unresolved triggering targets.
- Adds coverage for schedule and dispatch events.
| File | Description |
|---|---|
actions/setup/js/add_comment.cjs |
Converts missing triggering context into a fatal handler result. |
actions/setup/js/add_comment.test.cjs |
Verifies failure behavior across unsupported event contexts. |
💡 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 refresh commit |
|
@copilot the safe output mcp server should detect this issue when the add_comment call is made and return a actionable response to the agent.t |
|
@copilot Please take another pass on this PR. The branch was queued for refresh; once it settles, verify CI remains green and run the Generated by PR Sous Chef for #65068: Fail add-comment when the triggering target cannot be resolved
|
Co-authored-by: pelikhan <[email protected]>
Implemented in |
Verified refresh commit |
|
🎉 This pull request is included in a new release. Release: |
add-commentcould silently skiptarget: "triggering"outside an issue or PR context, leaving the workflow green without posting a required comment.Run: https://github.com/github/gh-aw/actions/runs/37041488340
add-commentcould silently skiptarget: "triggering"outside an issue or PR context, leaving the workflow green without posting a required comment.Failure behavior: Return a fatal error with guidance to configure an explicit target when no triggering context is available.
Scope: Preserve existing behavior for explicit targets and other safe-output types.
Fixes safe-output add-comment with target "triggering" silently skips and succeeds green outside issue/PR context #65056
Run: https://github.com/github/gh-aw/actions/runs/37041488340