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 + 3caa2a7 commit 94d8af6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/crgpt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
ref: ${{ github.head_ref || github.event.pull_request.head.ref }}

- 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 94d8af6

Please sign in to comment.