From a661c759c21a036d5bdabd70a374b998a42387b7 Mon Sep 17 00:00:00 2001 From: luoyunan Date: Wed, 18 Sep 2024 13:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20ai=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ce2850f..e79c6bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,13 +12,18 @@ jobs: review: runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - - name: AI Code Reviewer - uses: xiaotianhu/ai-codereviewer@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.API2D_KEY }} - OPENAI_API_MODEL: "gpt-4o-mini" # Optional: defaults to "gpt-4" - exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Get latest AI Code Reviewer action + run: | + git clone https://github.com/xiaotianhu/ai-codereviewer.git + cd ai-codereviewer + git checkout main + git pull + - name: AI Code Reviewer + uses: ./ai-codereviewer + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.API2D_KEY }} + OPENAI_API_MODEL: "gpt-4o-mini" + exclude: "**/*.json, **/*.md"