Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Dec 4, 2023
1 parent 43238e3 commit 3caa2a7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/crgpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@ name: Code Review GPT

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

jobs:
run_code_review:
if: contains(github.event.pull_request.labels.*.name, 'ready for review') && !github.event.pull_request.draft
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 }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 3caa2a7

Please sign in to comment.