Skip to content

Commit

Permalink
Add ChatGPT Code Review workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuwow committed Jul 27, 2024
1 parent c95c637 commit 4ca58d8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Code Review by ChatGPT

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

jobs:
code_review:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: gpt-4o-mini
max_tokens: 10000
MAX_PATCH_LENGTH: 10000

0 comments on commit 4ca58d8

Please sign in to comment.