From ede551f2ddcbaa96714907763585c8c5ab84b5f8 Mon Sep 17 00:00:00 2001 From: chenzihong <58508660+ChenZiHong-Gavin@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:58:26 +0800 Subject: [PATCH] Revert "ci: add code reviewer" --- .github/workflows/code-review.yml | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/code-review.yml diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml deleted file mode 100644 index ea4e2015..00000000 --- a/.github/workflows/code-review.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Gemini AI Code Reviewer - -on: - issue_comment: - types: [created] - -permissions: write-all - -jobs: - gemini-code-review: - runs-on: ubuntu-latest - if: | - github.event.issue.pull_request && - contains(github.event.comment.body, '/gemini-review') - steps: - - name: PR Info - run: | - echo "Comment: ${{ github.event.comment.body }}" - echo "Issue Number: ${{ github.event.issue.number }}" - echo "Repository: ${{ github.repository }}" - - - name: Checkout Repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get PR Details - id: pr - run: | - PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}) - echo "head_sha=$(echo $PR_JSON | jq -r .head.sha)" >> $GITHUB_OUTPUT - echo "base_sha=$(echo $PR_JSON | jq -r .base.sha)" >> $GITHUB_OUTPUT - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: truongnh1992/gemini-ai-code-reviewer@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - GEMINI_MODEL: gemini-2.5-flash # Optional, default is `gemini-2.5-flash` - EXCLUDE: "*.md,*.txt,package-lock.json,*.yml,*.yaml"