Skip to content

Commit

Permalink
Update main.yml to use our forked version of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanasis Politis committed Mar 25, 2023
1 parent 9e1e918 commit 80176c9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
- uses: havoc24k/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.CHATGPT_API_KEY }}
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,32 @@ To trigger a code review by ChatGPT simply create a new pull request. The Github
$ weaver generate .
$ go run .
``
## Github Actions definition
> `.github/workflows/main.yml`
```
name: ChatGPT Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.CHATGPT_API_KEY }}
# Optional
LANGUAGE: English
MODEL: gpt-3.5-turbo
top_p: 1
temperature: 1
```

0 comments on commit 80176c9

Please sign in to comment.