Skip to content

Commit edf97d9

Browse files
authored
Create main.yml
1 parent f9fa7e5 commit edf97d9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Patchwork PRReview
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
jobs:
7+
review:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
13+
- uses: jwalton/gh-find-current-pr@master
14+
id: findPr
15+
16+
- name: PR Review
17+
run: |
18+
pip install patchwork-cli \
19+
patchwork PRReview --log debug \
20+
--openai_api_key=${{ secrets.OPENAI_KEY }} \
21+
--pr_url=https://github.com/${{ github.repository }}/pull/${{ steps.findPr.outputs.number }}

0 commit comments

Comments
 (0)