From f2e7d242e299e0360343b4ed6036f13bd9800df3 Mon Sep 17 00:00:00 2001 From: thias15 Date: Sat, 1 Jun 2024 14:48:21 -0700 Subject: [PATCH] Update ai_reviewer.yml --- .github/workflows/ai_reviewer.yml | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ai_reviewer.yml b/.github/workflows/ai_reviewer.yml index d7935be60..abeb3b8bf 100644 --- a/.github/workflows/ai_reviewer.yml +++ b/.github/workflows/ai_reviewer.yml @@ -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/code-review-gpt@v0.1.8 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 }} +