From 5ed1be6ce8856df411724fa42b0934b7eee99b6b Mon Sep 17 00:00:00 2001 From: William Aaron Cheung Date: Fri, 31 Jul 2026 13:43:13 +0800 Subject: [PATCH] ci: let PR comments trigger a Claude review reconcile round The pr-review job now also runs on issue_comment events on PRs, so answering an open review question or finding in a PR comment triggers Claude to reconcile the outstanding threads. This is opt-in per the shared action's issue_comment support. Comments from any human or bot are allowed; only the reviewer itself (mega-maxwell[bot]) is skipped to avoid self-triggering loops. 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 80ee230..d6be5b7 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -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]') 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) || '' }} token: ${{ steps.app-token.outputs.token }} persist-credentials: false submodules: recursive