Skip to content

Commit

Permalink
Merge branch 'add-gpt-review' into fix-delete-feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Dec 4, 2023
2 parents 7530b35 + ed90960 commit c0b801e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/crgpt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Code Review GPT

on:
pull_request:
types: [opened, synchronize]
pull_request_target:
types: [ready_for_review]

jobs:
run_code_review:
if: >
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ready for review') && !github.event.pull_request.draft) ||
github.event_name == 'pull_request_target'
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 c0b801e

Please sign in to comment.