Skip to content

Commit f5eba7b

Browse files
harjotgillGurinderRawala
authored andcommitted
update action
1 parent f8f148b commit f5eba7b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/chatgpt-review.yml renamed to .github/workflows/openai-review.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: ChatGPT Reviewer
1+
name: OpenAI Reviewer
22

33
permissions:
44
contents: read
55
pull-requests: write
66

7-
on: [pull_request]
7+
on:
8+
pull_request:
9+
pull_request_review_comment:
10+
types: [created]
811

912
concurrency:
1013
group:
1114
${{ 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' }}
1418

1519
jobs:
1620
test:
1721
runs-on: ubuntu-latest
1822
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
2524
env:
2625
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2726
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)