From 852758aeb5819705a4f793aea672f50e7545e92c Mon Sep 17 00:00:00 2001 From: "devnull.exile" Date: Thu, 5 Nov 2026 22:08:55 +0000 Subject: [PATCH 1/2] ci: add DeepSeek pull request review --- .github/workflows/deepseek-review.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deepseek-review.yml diff --git a/.github/workflows/deepseek-review.yml b/.github/workflows/deepseek-review.yml new file mode 100644 index 0000000..ca17891 --- /dev/null +++ b/.github/workflows/deepseek-review.yml @@ -0,0 +1,30 @@ +name: DeepSeek PR Review + +on: + pull_request_target: + types: [opened, reopened, ready_for_review, synchronize] + +# The action works with the reviewer GitHub App token only. +permissions: {} + +concurrency: + group: deepseek-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + review: + # Forks of this repository have no reviewer secrets. + if: github.repository_owner == 'LHCWN' + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + # Reads the diff through the GitHub API; pull request code is never checked out or run. + # Only members of the organization are reviewed, private memberships included; + # drafts and other authors are skipped. + # Reviewer: https://github.com/devnullexile/deepseek-review + - uses: devnullexile/deepseek-review@v1 + with: + deepseek-api-key: ${{ secrets.DEEPSEEK_API_KEY }} + app-id: ${{ vars.REVIEW_APP_ID }} + app-private-key: ${{ secrets.REVIEW_APP_PRIVATE_KEY }} + members-only: "true" From 5f05e3c0a0d6603cb9305010809b0c382829c219 Mon Sep 17 00:00:00 2001 From: "devnull.exile" Date: Fri, 6 Nov 2026 08:15:34 +0800 Subject: [PATCH 2/2] ci: pass the review app's client-id instead of the deprecated app-id --- .github/workflows/deepseek-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deepseek-review.yml b/.github/workflows/deepseek-review.yml index ca17891..5b6b18b 100644 --- a/.github/workflows/deepseek-review.yml +++ b/.github/workflows/deepseek-review.yml @@ -25,6 +25,6 @@ jobs: - uses: devnullexile/deepseek-review@v1 with: deepseek-api-key: ${{ secrets.DEEPSEEK_API_KEY }} - app-id: ${{ vars.REVIEW_APP_ID }} + client-id: ${{ vars.REVIEW_CLIENT_ID }} app-private-key: ${{ secrets.REVIEW_APP_PRIVATE_KEY }} members-only: "true"