From bcf7f40979b7912ad5dd7684960fec22e73e66e0 Mon Sep 17 00:00:00 2001 From: phernandez Date: Tue, 23 Sep 2025 10:00:51 -0500 Subject: [PATCH] fix: Correct GitHub workflow conditions for org member @claude mentions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: phernandez --- .github/workflows/claude.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 14399a62..13f6d323 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -22,6 +22,9 @@ jobs: (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@claude')) ) && ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'COLLABORATOR' || github.event.sender.author_association == 'OWNER' || github.event.sender.author_association == 'MEMBER' || github.event.sender.author_association == 'COLLABORATOR' ||