diff --git a/.github/workflows/code-review.yaml b/.github/workflows/code-review.yaml index 2071c4a..ed92b5c 100644 --- a/.github/workflows/code-review.yaml +++ b/.github/workflows/code-review.yaml @@ -16,8 +16,14 @@ jobs: name: GPT Code Review 🤖 runs-on: ubuntu-latest steps: + - name: Checkout Repo 🛎️ + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: GPT Code Review 🤖 - uses: microsoft/gpt-review@v0.9.5 - env: - GITHUB_TOKEN: "${{ secrets.REPO_GITHUB_TOKEN }}" - OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" + 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 }}