Skip to content

Commit e554a92

Browse files
committed
fix: add PR guard and same-repo check to interactive job
1 parent ba1abe3 commit e554a92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
if: |
8585
(
8686
github.event_name == 'issue_comment' &&
87+
github.event.issue.pull_request &&
8788
contains(github.event.comment.body, '@claude') &&
8889
!contains(github.event.comment.body, '@claude review') &&
8990
(
@@ -94,6 +95,7 @@ jobs:
9495
) ||
9596
(
9697
github.event_name == 'pull_request_review_comment' &&
98+
github.event.pull_request.head.repo.full_name == github.repository &&
9799
contains(github.event.comment.body, '@claude') &&
98100
(
99101
github.event.comment.author_association == 'MEMBER' ||

0 commit comments

Comments
 (0)