Skip to content

Allow sending push-option strings to the server #5

Allow sending push-option strings to the server

Allow sending push-option strings to the server #5

Workflow file for this run

name: Claude PR Review
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request:
types: [opened, synchronize, labeled]
jobs:
claude-review:
runs-on: ubuntu-latest
# Run when:
# 1. @claude is mentioned in a comment, OR
# 2. PR has 'claude-review' label (on open, push, or label added)
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' && contains(github.event.pull_request.labels.*.name, 'claude-review'))
permissions:
contents: read
pull-requests: write
issues: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
EVENT: ${{ github.event_name }}
REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
COMMENT: ${{ github.event.comment.body }}
Follow .claude/skills/code-review/SKILL.md to handle this event.
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh api:*),Bash(cat:*),Bash(sed:*),Read,Write,Edit"'