-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (33 loc) · 1.04 KB
/
pr.yml
File metadata and controls
40 lines (33 loc) · 1.04 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
name: Review PR
on:
workflow_call:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
pi-agent:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Run Pi agent
uses: shaftoe/pi-coding-agent-action@v2
with:
github_token: ${{ secrets.gh_token }}
provider: ${{ vars.PROVIDER }}
model: ${{ vars.MODEL }}
token: ${{ secrets.token }}
thinking_level: ${{ vars.THINKING_LEVEL }}
prompt: This is a GitHub PR (#${{ github.event.pull_request.number }}) that needs code review. Focus on identifying issues, bugs, security concerns, and improvements.
extensions: |
npm:pi-librarian