-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 857 Bytes
/
pr-review.yml
File metadata and controls
37 lines (31 loc) · 857 Bytes
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
name: PR Review Bot
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout pull-request-bot action
uses: actions/checkout@v4
with:
repository: nventive/pull-request-bot
ref: v2
token: ${{ secrets.GH_PAT }}
path: .github/actions/pull-request-bot
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run Pull Request Bot
uses: ./.github/actions/pull-request-bot
with:
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
config-path: "./pull-request-bot.json"