-
Notifications
You must be signed in to change notification settings - Fork 13
ci: let PR comments trigger a Claude review reconcile round #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,14 +51,17 @@ jobs: | |
|
|
||
| pr-review: | ||
| concurrency: | ||
| group: claude-pr-review-${{ github.event.pull_request.number }} | ||
| group: claude-pr-review-${{ github.event.pull_request.number || github.event.issue.number }} | ||
| cancel-in-progress: false | ||
| if: | | ||
| github.event_name == 'pull_request' && | ||
| (github.event.action == 'opened' || | ||
| github.event.action == 'synchronize' || | ||
| github.event.action == 'ready_for_review' || | ||
| github.event.action == 'reopened') | ||
| (github.event_name == 'pull_request' && | ||
| (github.event.action == 'opened' || | ||
| github.event.action == 'synchronize' || | ||
| github.event.action == 'ready_for_review' || | ||
| github.event.action == 'reopened')) || | ||
| (github.event_name == 'issue_comment' && | ||
| github.event.issue.pull_request != null && | ||
| github.event.comment.user.login != 'mega-maxwell[bot]') | ||
|
Comment on lines
+62
to
+64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a trusted member posts a top-level PR comment containing Useful? React with πΒ / π. |
||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 30 | ||
| permissions: | ||
|
|
@@ -80,6 +83,7 @@ jobs: | |
|
|
||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || '' }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a fork PR, an Useful? React with πΒ / π. |
||
| token: ${{ steps.app-token.outputs.token }} | ||
| persist-credentials: false | ||
| submodules: recursive | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a user replies directly to an inline Claude finding, GitHub emits
pull_request_review_comment, notissue_comment; although this workflow subscribes to that event at lines 5β6, the newpr-reviewcondition only acceptspull_requestandissue_comment. Consequently, the common action of answering a finding in its review thread never starts the intended reconcile round; include the review-comment event while retaining the reviewer-bot guard to prevent self-triggering.Useful? React with πΒ / π.