Skip to content

Add hex sticker to README #16

Add hex sticker to README

Add hex sticker to README #16

Workflow file for this run

# Claude Code — auto PR review + interactive @claude mentions
# Reviews PRs from owner and bots automatically.
# Also responds to @claude in issues, PRs, and review comments.
#
# Uses CLAUDE_CODE_OAUTH_TOKEN (Max subscription, flat rate)
# Only owner/collaborator/member can trigger
name: Claude Code
on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
# Auto-review PRs from owner only
review:
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'NewGraphEnvironment'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: read
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Claude Code Review
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: |
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*)"
prompt: |
Review this pull request. Be concise. Only flag real issues.
Focus on correctness, bugs, and security. Skip style nits.
You MUST post your review as a PR comment:
gh pr comment ${{ github.event.pull_request.number }} --body "your review"
# Interactive @claude mentions
interactive:
if: |
github.event_name != 'pull_request' &&
(
(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 == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
) &&
(
github.actor == github.repository_owner ||
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.issue.author_association == 'OWNER' ||
github.event.issue.author_association == 'COLLABORATOR' ||
github.event.issue.author_association == 'MEMBER'
)
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}