-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.32 KB
/
pi.yml
File metadata and controls
56 lines (48 loc) · 1.32 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
45
46
47
48
49
50
51
52
53
54
55
56
name: Pi AI Agent
on:
workflow_call:
inputs:
prompt:
type: string
required: false
allowed_actor:
type: string
required: false
secrets:
token:
required: true
gh_token:
required: true
permissions:
contents: write
issues: write
pull-requests: write
jobs:
pi-agent:
if: |
(startsWith(github.event.comment.body, '/pi') || startsWith(github.event.review.body, '/pi')) &&
(inputs.allowed_actor == '' || github.actor == inputs.allowed_actor)
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: ${{ inputs.prompt }}
extensions: |
npm:pi-librarian