claude-code-action
claude-code-action copied to clipboard
Allowing multiple specialized bot in the same PR (using smart invisible tags)
Allowing multiple Claude Reviewers in the same PR by changing the bot_name (e.g. security_review vs science_skills)
Usage Example
Configure each workflow with a unique bot_name:
# .github/workflows/claude-code-review.yml
- uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
use_sticky_comment: true
bot_name: "claude-code-review" # Unique identifier
# .github/workflows/claude-security-review.yml
- uses: anthropics/claude-code-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
use_sticky_comment: true
bot_name: "claude-security" # Different identifier
Implementation detail
Adding an hidden Header Identification (src/github/operations/comments/common.ts) - Adds header when useStickyComment=true - Invisible to users, used for bot identification
Following up on the previous request https://github.com/anthropics/claude-code-action/pull/411 with a simplified approach
related issue -- https://github.com/anthropics/claude-code-action/issues/419
here's my take on this -- https://github.com/anthropics/claude-code-action/pull/789