From 1cf1d43eaeda0fd3b580841e40ea27d929279452 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 12 Jun 2023 19:12:55 +0000 Subject: [PATCH] chore: use fluxninja/openai-pr-reviewer@v0 instead since it supports pull_request_target event which allows it to review PR from fork --- .github/workflows/pr-lint.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 0af3bd075..7fca4b89c 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -77,7 +77,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} chatgpt-review: - name: ChatGPT CodeReviewer + name: ChatGPT PR reviewer if: ${{ github.event_name == 'pull_request_target' }} permissions: contents: read @@ -85,8 +85,11 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: anc95/ChatGPT-CodeReview@v1.0.8 + - uses: fluxninja/openai-pr-reviewer@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_ENDPOINT: ${{ secrets.OPENAI_API_ENDPOINT }} + with: + openai_base_url: ${{ secrets.OPENAI_API_ENDPOINT }} + openai_model_temperature: '1.0' + disable_release_notes: true