Skip to content

Commit b38e452

Browse files
committed
fix: notify on review failure
1 parent a34b3a1 commit b38e452

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/claude-pr-review.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
echo "EOF" >> $GITHUB_OUTPUT
4646
4747
- uses: anthropics/claude-code-action@v1
48+
id: review
4849
continue-on-error: true
4950
with:
5051
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -56,3 +57,9 @@ jobs:
5657
${{ steps.prompt.outputs.content }}
5758
claude_args: |
5859
--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"
60+
61+
- name: Notify on review failure
62+
if: steps.review.outcome == 'failure'
63+
run: gh pr comment ${{ github.event.pull_request.number }} --body "Automated review unavailable (Claude step failed). Please review manually."
64+
env:
65+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)