generated from Jonghakseo/chrome-extension-boilerplate-react-vite
-
Notifications
You must be signed in to change notification settings - Fork 12
20 lines (18 loc) · 930 Bytes
/
review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Code Review with ChatGPT
on:
pull_request:
types: [opened]
jobs:
add-auto-review-comment:
if: contains(github.event.pull_request.labels.*.name, 'review')
runs-on: ubuntu-latest
name: Code Review with ChatGPT
steps:
- uses: Jonghakseo/gpt-pr-github-actions@v1
with:
openai_api_key: ${{ secrets.openai_api_key }} # Get the OpenAI API key from repository secrets
github_token: ${{ secrets.GITHUB_TOKEN }} # Get the Github Token from repository secrets
github_pr_id: ${{ github.event.number }} # Get the Github Pull Request ID from the Github event
openai_model: "gpt-3.5-turbo" # Optional: specify the OpenAI engine to use. [gpt-3.5-turbo, text-davinci-002, text-babbage-001, text-curie-001, text-ada-001'] Default is 'gpt-3.5-turbo'
openai_temperature: 0.5 # Optional: Default is 0.7
openai_top_p: 0.5 # Optional: Default 0.8