Skip to content

Commit

Permalink
add gpt code reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Dec 4, 2023
1 parent b16f5c1 commit 43238e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/crgpt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Code Review GPT

on:
pull_request:
types: [labeled, synchronize]

jobs:
run_code_review:
if: contains(github.event.pull_request.labels.*.name, 'ready for review') && !github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Code Review GPT
uses: mattzcarey/[email protected]
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-3.5-turbo'
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 43238e3

Please sign in to comment.