Commit 66e8c27
fix(ci): skip claude-mention for bot-authored issues (#1429)
## Summary
- Add `github.event.issue.user.login != 'worktrunk-bot'` to the `issues`
trigger in `claude-mention.yaml`
- Document the new filter in `.github/CLAUDE.md` "Does not trigger" list
## Problem
The hourly review workflow creates issues (like #1424) that incidentally
mention `@worktrunk-bot` in body text — e.g., "comment contained
`@worktrunk-bot`". This triggers `claude-mention` on the `issues` event,
which then duplicates the hourly review's work, including creating a
second fix PR (#1425 vs #1426 for the same issue).
## Fix
Add an author check to skip issues created by `worktrunk-bot` itself,
consistent with the existing `comment.user.login != 'worktrunk-bot'`
loop-prevention checks on `issue_comment` and
`pull_request_review_comment` events.
Closes #1428
## Test plan
- [ ] Verify the `if:` condition syntax is valid (CI should pass)
- [ ] Confirm the next hourly review run doesn't trigger a
claude-mention run on its issues
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d8078b1 commit 66e8c27
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments