Skip to content

Commit

Permalink
ci: add code-review-gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jun 11, 2024
1 parent 9911894 commit 0e7baaf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Code Review GPT

on:
pull_request:
branches: [main]

permissions:
pull-requests: write
contents: read

jobs:
run_code_review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Code Review GPT
uses: mattzcarey/code-review-gpt@v0.1.8
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-4o'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0e7baaf

Please sign in to comment.