ci(triage): fire on PR comments + add is_pr/pr context (port of adcp#3316)#1028
Merged
Conversation
Port from adcontextprotocol/adcp#3316. The previous workflow filtered PR comments out via `github.event.issue.pull_request == null` with a comment claiming an "auto-fix" workflow handled them — but no auto-fix workflow exists. PR review feedback sat unactioned until someone manually invoked /triage. Drop the filter. Route PR comments to the same triage routine, with two adaptations on the payload so the routine can branch: - is_pr: true|false flag at the top of the prompt - pr block with head_ref, base_ref, draft, state when is_pr=true - MODE directive when is_pr=true: apply requested fix as a follow-up commit on the PR's head branch, or post a reply if it's a question Self-loop guard widened to skip "Fixed by Claude Code" in addition to "Triaged by Claude Code" so PR-fix replies don't re-trigger. Concurrency group already keys on issue.number, which GitHub assigns sequentially across both issues and PRs, so PR runs won't collide with issue runs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Port of adcontextprotocol/adcp#3316. Same change applied here so PR review feedback in this repo also fires the triage routine.
Drops the
github.event.issue.pull_request == nullfilter, addsis_prflag andprblock to the routine payload (head_ref, base_ref, draft, state), and widens the self-loop guard to skipFixed by Claude Codein addition toTriaged by Claude Code.🤖 Generated with Claude Code