-
Notifications
You must be signed in to change notification settings - Fork 2k
44 lines (37 loc) · 1.2 KB
/
a4a-pr-review.yml
File metadata and controls
44 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: A4A PR Review
on:
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to review'
required: true
pull_request:
types: [opened, ready_for_review]
paths:
- 'client/a8c-for-agencies/**'
concurrency:
group: a4a-pr-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
review:
runs-on: ubuntu-latest
timeout-minutes: 15
if: github.event.pull_request.draft == false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run A4A PR Review
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Read and follow the instructions in .github/prompts/a4a-pr-review.md
Use `mcp__github_inline_comment__create_inline_comment` for review.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),Bash(git show:*),Bash(git diff:*),Bash(git ls-files:*),Bash(git grep:*),Bash(rg *)"