Skip to content

Commit bcf7f40

Browse files
phernandezclaude
andcommitted
fix: Correct GitHub workflow conditions for org member @claude mentions
Fixed the conditional logic in claude.yml to properly handle different event types: - Use github.event.comment.author_association for issue_comment events - Use github.event.sender.author_association for other events - Maintain support for all basicmachines-co org members (OWNER/MEMBER/COLLABORATOR) This ensures @claude mentions in PR comments trigger the workflow correctly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 8c7e29e commit bcf7f40

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/claude.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) ||
2323
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@claude'))
2424
) && (
25+
github.event.comment.author_association == 'OWNER' ||
26+
github.event.comment.author_association == 'MEMBER' ||
27+
github.event.comment.author_association == 'COLLABORATOR' ||
2528
github.event.sender.author_association == 'OWNER' ||
2629
github.event.sender.author_association == 'MEMBER' ||
2730
github.event.sender.author_association == 'COLLABORATOR' ||

0 commit comments

Comments
 (0)