Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Claude review
|
|
description: >-
|
|
Reviews a pull request with Claude Code when it is opened, and answers comments
|
|
on it that mention @claude ("@claude review" reviews it again). Read-only: Claude
|
|
can read the code and git history but cannot change files or push.
|
|
inputs:
|
|
anthropic_api_key:
|
|
description: Anthropic API key (pass secrets.ANTHROPIC_API_KEY)
|
|
required: true
|
|
model:
|
|
description: Claude model (empty means claude-opus-5-5)
|
|
required: false
|
|
default: ""
|
|
token:
|
|
description: Gitea token used to read the pull request and post the review
|
|
required: false
|
|
default: ${{ github.token }}
|
|
claude_code_version:
|
|
description: Version of Claude Code to install from npm
|
|
required: false
|
|
default: "2.1.326"
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Review with Claude
|
|
shell: bash
|
|
run: bash "${{ github.action_path }}/review.sh"
|
|
env:
|
|
ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}
|
|
CLAUDE_MODEL: ${{ inputs.model }}
|
|
GITEA_TOKEN: ${{ inputs.token }}
|
|
CLAUDE_CODE_VERSION: ${{ inputs.claude_code_version }}
|
|
ACTION_PATH: ${{ github.action_path }}
|