From a34b3a11d630c4544ffa47c912c4eed3bb9fb821 Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Fri, 13 Mar 2026 09:26:42 -0700 Subject: [PATCH 1/3] fix: specify ref for cross-repo checkout, add timeout and continue-on-error --- .github/workflows/claude-pr-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index c75ccb5..07ff55d 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -9,6 +9,7 @@ jobs: # TODO: remove author filter after testing is complete if: github.event.pull_request.draft == false && github.event.pull_request.user.login == 'zfarrell' runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: read pull-requests: write @@ -29,6 +30,7 @@ jobs: - uses: actions/checkout@v4 with: repository: hotdata-dev/github-workflows + ref: main token: ${{ steps.app-token.outputs.token }} path: .github-workflows sparse-checkout: docs/claude-pr-review-prompt.md @@ -43,6 +45,7 @@ jobs: echo "EOF" >> $GITHUB_OUTPUT - uses: anthropics/claude-code-action@v1 + continue-on-error: true with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} track_progress: false From b38e452e17ca00352a50b9e2f0e7d54a5183b563 Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Fri, 13 Mar 2026 09:37:15 -0700 Subject: [PATCH 2/3] fix: notify on review failure --- .github/workflows/claude-pr-review.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index 07ff55d..cb4b7c8 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -45,6 +45,7 @@ jobs: echo "EOF" >> $GITHUB_OUTPUT - uses: anthropics/claude-code-action@v1 + id: review continue-on-error: true with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} @@ -56,3 +57,9 @@ jobs: ${{ steps.prompt.outputs.content }} claude_args: | --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr review:*),Read" + + - name: Notify on review failure + if: steps.review.outcome == 'failure' + run: gh pr comment ${{ github.event.pull_request.number }} --body "Automated review unavailable (Claude step failed). Please review manually." + env: + GH_TOKEN: ${{ github.token }} From 2a65ae00302ebc309a0ceaa8bab9a0f97ef55ff8 Mon Sep 17 00:00:00 2001 From: Zac Farrell Date: Fri, 13 Mar 2026 09:39:53 -0700 Subject: [PATCH 3/3] Update .github/workflows/claude-pr-review.yml Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> --- .github/workflows/claude-pr-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index cb4b7c8..f230400 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -59,7 +59,7 @@ jobs: --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr review:*),Read" - name: Notify on review failure - if: steps.review.outcome == 'failure' + if: steps.review.outcome == 'failure' || steps.review.outcome == 'cancelled' run: gh pr comment ${{ github.event.pull_request.number }} --body "Automated review unavailable (Claude step failed). Please review manually." env: GH_TOKEN: ${{ github.token }}