Skip to content

Commit

Permalink
update gpt_review.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thias15 authored Jun 2, 2024
1 parent f60024b commit 54ed1c9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/gpt_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ jobs:
contains(github.event.comment.body, '/gr')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Run GPT Code Review
uses: cirolini/genai-code-review@v2
uses: mattzcarey/code-review[email protected]
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_pr_id: ${{ github.event.number }}
openai_model: "gpt-4o" # optional
openai_temperature: 0.5 # optional
openai_max_tokens: 2048 # optional
mode: files # files or patch
language: en # optional, default is 'en'
custom_prompt: "" # optional
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-4o'
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 54ed1c9

Please sign in to comment.