Skip to content

Commit bec5500

Browse files
authored
Merge pull request #1287 from VisLab/fix_extras
Added a warning comment when claude review doesn't run
2 parents ef5dff3 + 7b399ee commit bec5500

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,12 @@ jobs:
6767
6868
claude_args: |
6969
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Read,Glob,Grep"
70+
71+
- name: Notify if Claude review failed
72+
if: steps.claude-review.outcome == 'failure'
73+
env:
74+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
run: |
76+
gh pr comment ${{ github.event.pull_request.number }} \
77+
--repo ${{ github.repository }} \
78+
--body "**Claude code review could not run.** The request to the Claude API failed (possible causes: billing limit reached, token expired, or service unavailable). Review this PR manually."

0 commit comments

Comments
 (0)