mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 10:33:12 +00:00
Remove custom Claude Code Review workflow
Replaced by the official Claude Code GitHub App, which handles @claude mentions, review requests, and PR triggers natively.
This commit is contained in:
parent
6b896eb463
commit
14df14f058
1 changed files with 0 additions and 85 deletions
85
.github/workflows/claude-code-review.yaml
vendored
85
.github/workflows/claude-code-review.yaml
vendored
|
|
@ -1,85 +0,0 @@
|
|||
name: Claude Code Review
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
repository:
|
||||
description: "Target repository (e.g., Sea-Haven-Industries/meal-order-manager)"
|
||||
required: true
|
||||
type: string
|
||||
pr_number:
|
||||
description: Pull request number to review
|
||||
required: true
|
||||
type: string
|
||||
workflow_call:
|
||||
inputs:
|
||||
direct_call:
|
||||
description: Bypass event filtering (set automatically for reusable workflow callers)
|
||||
type: boolean
|
||||
default: true
|
||||
secrets:
|
||||
anthropic_api_key:
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: read
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
claude-review:
|
||||
if: >-
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
inputs.direct_call == true
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Generate GitHub App token
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
id: app-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ secrets.CLAUDE_CI_APP_ID }}
|
||||
private-key: ${{ secrets.CLAUDE_CI_APP_PRIVATE_KEY }}
|
||||
owner: Sea-Haven-Industries
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ inputs.repository || github.repository }}
|
||||
token: ${{ steps.app-token.outputs.token || github.token }}
|
||||
fetch-depth: 1
|
||||
|
||||
- uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
anthropic_api_key: ${{ secrets.anthropic_api_key || secrets.ANTHROPIC_API_KEY }}
|
||||
github_token: ${{ steps.app-token.outputs.token || github.token }}
|
||||
allowed_bots: '*'
|
||||
trigger_phrase: '@claude'
|
||||
prompt: |
|
||||
REPO: ${{ inputs.repository || github.repository }}
|
||||
PR NUMBER: ${{ inputs.pr_number || github.event.pull_request.number || github.event.issue.number }}
|
||||
|
||||
Review this pull request. Only comment on:
|
||||
- Bugs or logic errors
|
||||
- Security vulnerabilities (hardcoded secrets, injection, OWASP top 10)
|
||||
- Breaking changes or regressions
|
||||
- Sea Haven convention violations: kebab-case resource names, secrets in AWS Secrets Manager (not env vars or SSM), Lambda defaults (Python 3.12+/Node 22.x, arm64, explicit 60-day log retention)
|
||||
|
||||
Do NOT comment on:
|
||||
- Style, formatting, or naming preferences
|
||||
- Minor refactoring suggestions
|
||||
- Performance unless it is a measurable regression
|
||||
- Things that are already consistent with the existing codebase
|
||||
|
||||
Limit to 5 inline comments maximum. If the PR looks good, leave a single top-level comment saying so — do not force issues where there are none.
|
||||
|
||||
Use `gh pr comment` for top-level feedback.
|
||||
Use `mcp__github_inline_comment__create_inline_comment` (with `confirmed: true`) for specific code issues.
|
||||
Only post GitHub comments — do not submit review text as messages.
|
||||
|
||||
claude_args: |
|
||||
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
|
||||
env:
|
||||
GH_REPO: ${{ inputs.repository || github.repository }}
|
||||
GH_TOKEN: ${{ steps.app-token.outputs.token || github.token }}
|
||||
Loading…
Add table
Reference in a new issue