From 91529c7592f4f32b0e457bf4b92b1544f499c543 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 2 Feb 2026 11:23:06 +0800 Subject: [PATCH] fix duplicate pr review --- .github/workflows/codex-pr-review.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/codex-pr-review.yml b/.github/workflows/codex-pr-review.yml index 0ea9aa8a..aa91e61b 100644 --- a/.github/workflows/codex-pr-review.yml +++ b/.github/workflows/codex-pr-review.yml @@ -91,28 +91,3 @@ jobs: prompt-file: .github/prompts/codex-pr-review.md allow-bots: true allow-users: "*" - - post-review: - runs-on: ubuntu-latest - needs: pr-review - if: needs.pr-review.outputs.review_result != '' - permissions: - pull-requests: write - steps: - - name: Post Review Comment - uses: actions/github-script@v7 - env: - REVIEW_RESULT: ${{ needs.pr-review.outputs.review_result }} - with: - github-token: ${{ github.token }} - script: | - const body = process.env.REVIEW_RESULT; - if (body && body.trim()) { - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - body, - event: "COMMENT" - }); - }