File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- name : ChatGPT Reviewer
1
+ name : OpenAI Reviewer
2
2
3
3
permissions :
4
4
contents : read
5
5
pull-requests : write
6
6
7
- on : [pull_request]
7
+ on :
8
+ pull_request :
9
+ pull_request_review_comment :
10
+ types : [created]
8
11
9
12
concurrency :
10
13
group :
11
14
${{ github.repository }}-${{ github.event.number || github.head_ref ||
12
- github.sha }}-${{ github.workflow }}
13
- cancel-in-progress : true
15
+ github.sha }}-${{ github.workflow }}-${{ github.event_name ==
16
+ ' pull_request_review_comment' && 'pr_comment' || 'pr' }}
17
+ cancel-in-progress : ${{ github.event_name != 'pull_request_review_comment' }}
14
18
15
19
jobs :
16
20
test :
17
21
runs-on : ubuntu-latest
18
22
steps :
19
- - uses : actions/checkout@v3
20
- with :
21
- repository : ${{github.event.pull_request.head.repo.full_name}}
22
- ref : ${{github.event.pull_request.head.ref}}
23
- submodules : false
24
- - uses : fluxninja/chatgpt-pr-reviewer@main
23
+ - uses : fluxninja/openai-pr-reviewer@main
25
24
env :
26
25
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
26
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
You can’t perform that action at this time.
0 commit comments