From e621b0366d2c348fc07e7a267d3690c52abf1f25 Mon Sep 17 00:00:00 2001 From: "Anthony Fu (via agent)" Date: Mon, 5 Oct 2026 10:14:51 +0000 Subject: [PATCH] ci: analyze pull requests with pulls.review --- .github/workflows/pulls-review.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pulls-review.yml diff --git a/.github/workflows/pulls-review.yml b/.github/workflows/pulls-review.yml new file mode 100644 index 00000000..014fa6f6 --- /dev/null +++ b/.github/workflows/pulls-review.yml @@ -0,0 +1,19 @@ +name: pulls.review + +on: + # The analysis reads the diff through the API and never checks out PR code, + # so `pull_request_target` is safe and lets fork PRs get a comment too. + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + pull-requests: write + +jobs: + analyze: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: antfu/pulls.review@main + with: + api-key: ${{ secrets.VERCEL_AI_GATEWAY_API_KEY }}