-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add chatgpt code review * add chatgpt code review * add chatgpt code review --------- Co-authored-by: xianhuawei <xianhuawei@macair2018.local>
- Loading branch information
xianhuawei
and
xianhuawei
authored
Mar 24, 2023
1 parent
ac75f13
commit 237b5a2
Showing
2 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: ChatGPT Code Review | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened,synchronize] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
CodeReview: | ||
name: ChatGPT Code Review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: OpenAI ChatGPT Code Review | ||
uses: cirolini/chatgpt-github-actions@v1.3 | ||
with: | ||
openai_api_key: ${{ secrets.OPENAI_TOKEN }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_pr_id: ${{ github.event.number }} | ||
# openai_engine: "gpt-4" #optional | ||
# openai_temperature: 0.5 #optional | ||
# openai_max_tokens: 8192 #optional | ||
mode: file # file or patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters