-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.4 KB
/
gpt_pullrequest_updater.yml
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
name: GPT Pull Request Updater
on:
pull_request:
types:
- opened
- synchronize
jobs:
update_pull_request:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Checkout GPT-PullRequest-Updater
uses: actions/checkout@v2
with:
repository: ravilushqa/gpt-pullrequest-updater
path: gpt-pullrequest-updater
- name: Build description and review commands
run: |
cd gpt-pullrequest-updater
make build
- name: Update Pull Request Description
run: |
./gpt-pullrequest-updater/bin/description
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.number }}
OPENAI_MODEL: gpt-4
- name: Review Pull Request
if: github.event.action == 'opened'
run: |
./gpt-pullrequest-updater/bin/review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.number }}
OPENAI_MODEL: gpt-4