From db0126de53684b07c10cadbc41d7b23af4669248 Mon Sep 17 00:00:00 2001 From: wancat Date: Fri, 13 Oct 2023 00:25:14 +0800 Subject: [PATCH] fix: change to use mattzcarey/code-review-gpt --- .github/workflows/code_review.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index 9a54622..e482cb9 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -1,15 +1,20 @@ -name: CI/CD +name: Code Review GPT on: pull_request: - types: [opened, synchronize, reopened] + branches: [main] jobs: - gpt-review: + run_code_review: runs-on: ubuntu-latest - steps: - - name: gpt-review - uses: microsoft/gpt-review@v0.9.5 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Code Review GPT + uses: mattzcarey/code-review-gpt@v0.1.4-alpha with: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-3.5-turbo' + GITHUB_TOKEN: ${{ github.token }}