Skip to content

Commit 10c0802

Browse files
authored
feat: unblock community contributions in PR reviews (#115)
Restricts the automatic PR review workflow to run only for pull requests opened by repository owners, members, or collaborators. This is a temporary fix for requiring env vars in forks.
1 parent 40e4dfc commit 10c0802

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/gemini-pr-review.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ jobs:
3636
review-pr:
3737
if: |-
3838
github.event_name == 'workflow_dispatch' ||
39-
(github.event_name == 'pull_request' && github.event.action == 'opened') ||
39+
(github.event_name == 'pull_request' && github.event.action == 'opened' &&
40+
(
41+
github.event.pull_request.author_association == 'OWNER' ||
42+
github.event.pull_request.author_association == 'MEMBER' ||
43+
github.event.pull_request.author_association == 'COLLABORATOR'
44+
)
45+
) ||
4046
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
4147
contains(github.event.comment.body, '@gemini-cli /review') &&
4248
(

0 commit comments

Comments
 (0)