Skip to content

Commit 1a24160

Browse files
Restrict AI review to non-fork PRs only
Co-authored-by: Cursor <[email protected]>
1 parent 3f1899f commit 1a24160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ai-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: AI Review
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize]
66

77
permissions:
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
review:
1313
runs-on: ubuntu-latest
14-
if: github.event.pull_request.draft == false
14+
if: github.event.pull_request.head.repo.full_name == github.repository
1515
steps:
1616
- uses: ofershap/ai-pr-reviewer@v1
1717
with:

0 commit comments

Comments
 (0)