From d1487c1f6cf843fada59af23494a33c3753529ca Mon Sep 17 00:00:00 2001 From: William Aaron Cheung Date: Fri, 31 Jul 2026 13:43:39 +0800 Subject: [PATCH] ci: let PR comments trigger a Claude review reconcile round Extend the pr-review job to run on issue_comment events on PRs so the shared claude-pr-review action can reconcile open review questions and findings. Skips the bot's own comments, keys concurrency off the issue number, and checks out the PR head when triggered by a comment. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01GCc8MLBBAp5jAxc2x19swa --- .github/workflows/claude.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 4848fcb..765ca1e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -54,14 +54,17 @@ jobs: # rather than cancelling it, so a partial run never leaves comments/threads # in an inconsistent state. 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]') runs-on: ubuntu-24.04 timeout-minutes: 30 permissions: @@ -83,6 +86,7 @@ jobs: - uses: actions/checkout@v4 with: + ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || '' }} token: ${{ steps.app-token.outputs.token }} persist-credentials: false submodules: recursive