Skip to content

Commit d7fd6e9

Browse files
authored
add review pr workflow (#102)
1 parent faf45a2 commit d7fd6e9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Polka Codes Review PR Handler
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
workflow_dispatch:
7+
inputs:
8+
pr_number:
9+
description: 'PR number to review'
10+
required: true
11+
type: number
12+
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
17+
concurrency:
18+
group: review-pr-${{ github.event.inputs.pr_number || github.event.number }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
handle:
23+
timeout-minutes: 10
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- uses: google-github-actions/auth@v2
32+
with:
33+
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
34+
35+
- name: Process PR
36+
uses: polka-codes/action@master
37+
with:
38+
pr_number: ${{ github.event.inputs.pr_number || github.event.number }}
39+
review: true
40+
env:
41+
POLKA_API_PROVIDER: google-vertex
42+
POLKA_MODEL: gemini-2.5-pro
43+
GITHUB_TOKEN: ${{ github.token }}
44+
GOOGLE_VERTEX_LOCATION: us-central1
45+
GOOGLE_VERTEX_PROJECT: ${{ secrets.GOOGLE_VERTEX_PROJECT }}
46+
47+
# Generated by polka.codes

0 commit comments

Comments
 (0)