Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/claude-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -43,6 +45,7 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT

- uses: anthropics/claude-code-action@v1
continue-on-error: true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With continue-on-error: true, failures in the Claude step are silently swallowed — an expired API key or persistent outage would stop reviews from happening with no signal to the team. Consider adding a follow-up step that posts a PR comment when this step fails:

      - if: 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 }}

Non-blocking suggestion — the resilience intent is sound.

with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
track_progress: false
Expand Down
Loading