Skip to content

Commit

Permalink
Update ai_reviewer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thias15 committed Jun 1, 2024
1 parent b3f7277 commit f2e7d24
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/ai_reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,19 @@ on:
- synchronize
branches: [master]

permissions:
pull-requests: write

jobs:
build:
run_code_review:
runs-on: ubuntu-latest

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- name: Code Review GPT
uses: mattzcarey/[email protected]
with:
node-version: 18

- name: Install code-review-gpt
run: npm install code-review-gpt

- name: Configure code review script
run: npx code-review-gpt configure --setupTarget=github

- name: Run code review script
run: npx code-review-gpt review
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-4-o'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit f2e7d24

Please sign in to comment.