Skip to content

Commit 0bc9a3c

Browse files
authored
ci: analyze pull requests with pulls.review (#432)
1 parent 3c7df27 commit 0bc9a3c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/workflows/pulls-review.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pulls.review
2+
3+
on:
4+
# The analysis reads the diff through the API and never checks out PR code,
5+
# so `pull_request_target` is safe and lets fork PRs get a comment too.
6+
pull_request_target:
7+
types: [opened, synchronize, reopened]
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
analyze:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- uses: antfu/pulls.review@main
18+
with:
19+
api-key: ${{ secrets.VERCEL_AI_GATEWAY_API_KEY }}

0 commit comments

Comments
 (0)