From 461e2f88c69be40c9ccca9c931f12ae02cd8e253 Mon Sep 17 00:00:00 2001 From: ihabadham Date: Mon, 15 Sep 2025 18:48:28 +0300 Subject: [PATCH] fix: prevent Claude bot comments from triggering Claude workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents feedback loop where Claude Code Review comments trigger the interactive Claude workflow, causing spam comments. The interactive workflow should only trigger on human @claude mentions, not bot comments. Fixes workflow spam issue seen in PR #1776. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/claude.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 3cf327b931..f1161d399b 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -13,9 +13,9 @@ on: jobs: claude: if: | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && github.event.comment.user.login != 'claude[bot]') || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && github.event.comment.user.login != 'claude[bot]') || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && github.event.review.user.login != 'claude[bot]') || (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) runs-on: ubuntu-latest permissions: