File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Claude Test Fixer
2+ on :
3+ workflow_run :
4+ workflows : ["Test all cron (Linux)", "Test all cron (MacOS)"]
5+ types : [completed]
6+
7+ jobs :
8+ fix-on-failure :
9+ runs-on : ubuntu-latest
10+ if : ${{ github.event.workflow_run.conclusion == 'failure' }}
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ actions : read # Allows Claude to read the logs of the failed run
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Claude Fix Failed Tests
18+ uses : anthropics/claude-code-action@v1
19+ with :
20+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
21+ prompt : |
22+ The "CI Tests" workflow just failed.
23+ 1. Analyze the logs from the last failed run.
24+ 2. Identify the root cause of the test failure.
25+ 3. Implement a fix and create a new pull request.
26+
27+
28+
29+ additional_permissions : |
30+ actions: read
You can’t perform that action at this time.
0 commit comments