File tree Expand file tree Collapse file tree 2 files changed +49
-19
lines changed Expand file tree Collapse file tree 2 files changed +49
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : GPT Pull Request Updater
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+
9+ jobs :
10+ update_pull_request :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Set up Go
15+ uses : actions/setup-go@v2
16+ with :
17+ go-version : 1.19
18+
19+ - name : Checkout GPT-PullRequest-Updater
20+ uses : actions/checkout@v2
21+ with :
22+ repository : ravilushqa/gpt-pullrequest-updater
23+ path : gpt-pullrequest-updater
24+
25+ - name : Build description and review commands
26+ run : |
27+ cd gpt-pullrequest-updater
28+ go build -o description ./cmd/description
29+ go build -o review ./cmd/review
30+
31+ - name : Update Pull Request Description
32+ run : |
33+ ./gpt-pullrequest-updater/description
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ OPENAI_TOKEN : ${{ secrets.OPENAI_TOKEN }}
37+ OWNER : ${{ github.repository_owner }}
38+ REPO : ${{ github.event.repository.name }}
39+ PR_NUMBER : ${{ github.event.number }}
40+
41+ - name : Review Pull Request
42+ run : |
43+ ./gpt-pullrequest-updater/review
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ OPENAI_TOKEN : ${{ secrets.OPENAI_TOKEN }}
47+ OWNER : ${{ github.repository_owner }}
48+ REPO : ${{ github.event.repository.name }}
49+ PR_NUMBER : ${{ github.event.number }}
You can’t perform that action at this time.
0 commit comments