Skip to content

Development: Add GPT-based code reviews #1

Development: Add GPT-based code reviews

Development: Add GPT-based code reviews #1

Workflow file for this run

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 }}