Skip to content

fix(ci): let triage own all new issues to avoid mention/triage race - #1556

Merged
max-sixty merged 2 commits into
mainfrom
fix/triage-owns-new-issues
Mar 16, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/triage-owns-new-issues

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Remove opened from claude-mention's issues trigger — triage now owns all new issues
  • Remove @worktrunk-bot mention skip from claude-issue-triage so it handles mentioned issues too
  • Update .github/CLAUDE.md handoff documentation to reflect the new routing

Context

Suggested by @max-sixty in #1548: let the issue triager handle all new issues instead of having claude-mention race with claude-issue-triage when @worktrunk-bot appears in the issue body.

This is complementary to #1548's overlap detection — this PR reduces the trigger surface, while #1548 catches cross-issue races (comment on existing issue + new issue filed simultaneously).

Test plan

  • New issue without @worktrunk-bot → triage handles (unchanged)
  • New issue with @worktrunk-bot in body → triage handles (previously skipped to mention)
  • Issue edited to add @worktrunk-bot → mention handles (unchanged)
  • Comment on issue/PR → mention handles (unchanged)

🤖 Generated with Claude Code

Previously, claude-mention triggered on `issues: [opened, edited]` while
claude-issue-triage skipped issues mentioning @worktrunk-bot. This caused
races when a user both commented on an existing issue and filed a new one
— two workflows independently created fix PRs for the same bug (#1544/#1545).

Now triage handles all new issues (including @worktrunk-bot mentions),
and mention only triggers on issue edits. This eliminates the race for
new issues while preserving the ability to summon the bot by editing an
existing issue.

Ref: #1548 (comment)

Co-Authored-By: Claude Opus 4.6 <[email protected]>

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on line 20 says "Three triggers" but only two are listed (1 and 2). Before this PR it correctly said "Two triggers" — since this PR removes a trigger path (issues.opened), the count should stay at two or decrease, not increase.

Comment thread .github/workflows/claude-mention.yaml Resolved
@max-sixty
max-sixty enabled auto-merge (squash) March 16, 2026 05:37
@max-sixty
max-sixty merged commit ad08ff4 into main Mar 16, 2026
22 checks passed
@max-sixty
max-sixty deleted the fix/triage-owns-new-issues branch March 16, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants