Commit 3a86800
chore(ci): apply review fixes to Claude Code Action workflow
Addresses findings from the /pr-review-toolkit:review-pr pass:
- Invert fork check (`fork != false`) so missing/unknown field defaults to
"treat as fork, skip" rather than running and silently failing to post.
- Switch bot filter from `endsWith(user.login, '[bot]')` to
`user.type == 'Bot'`. The `[bot]` suffix only catches bots whose login ends
that way (dependabot, github-actions, renovate); the API-native `type` flag
also covers codecov, snyk-bot, mergify, etc.
- Drop `issues: write`. The workflow only posts to PRs and PR comments, so
`pull-requests: write` is sufficient. Noted in a comment that this means
Claude can't reply on standalone-issue threads until/unless we add it back.
- Bump `actions/checkout` v4 -> v6 to match deploy.yml and lighthouse.yml.
- Clarify the header comment: the `@claude` filter is inside the action's
`trigger_phrase`, not at the workflow `on:` layer (the old comment read
like GitHub itself gated the run).
- Tighten the other inline comments with a clearer "without these guards"
framing and remove the ambiguous "drop --max-turns lower" phrasing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 61cba69 commit 3a86800
1 file changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | | - | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
27 | | - | |
| 36 | + | |
28 | 37 | | |
29 | | - | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
33 | | - | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
41 | 50 | | |
0 commit comments