Skip to content

Added guide to utilize updated script #51

Added guide to utilize updated script

Added guide to utilize updated script #51

Workflow file for this run

name: Code Review GPT
on:
pull_request:
types: [opened, reopened, review_requested]
branches: [master]
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
code-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
fetch-depth: 0
- name: Run Code Review GPT
shell: bash
run: |
export GITHUB_SHA=${{ github.event.pull_request.head.sha }}
export BASE_SHA=${{ github.event.pull_request.base.sha }}
npx code-review-gpt2 review --ci=github --debug --model=gpt-4-1106-preview