@@ -34,54 +34,26 @@ jobs:
3434 (
3535 github.event_name == 'issues' && github.event.action == 'opened' &&
3636 contains(github.event.issue.body, '@gemini-cli') &&
37- !contains(github.event.issue.body, '/review') &&
38- !contains(github.event.issue.body, '/triage') &&
39- (
40- github.event.sender.type == 'User' && (
41- github.event.issue.author_association == 'OWNER' ||
42- github.event.issue.author_association == 'MEMBER' ||
43- github.event.issue.author_association == 'COLLABORATOR'
44- )
45- )
37+ !contains(github.event.issue.body, '@gemini-cli /review') &&
38+ !contains(github.event.issue.body, '@gemini-cli /triage') &&
39+ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)
4640 ) ||
4741 (
48- github.event_name == 'issue_comment' &&
49- contains(github.event.comment.body, '@gemini-cli') &&
50- !contains(github.event.comment.body, '/review') &&
51- !contains(github.event.comment.body, '/triage') &&
5242 (
53- github.event.sender.type == 'User' && (
54- github.event.comment.author_association == 'OWNER' ||
55- github.event.comment.author_association == 'MEMBER' ||
56- github.event.comment.author_association == 'COLLABORATOR'
57- )
58- )
43+ github.event_name == 'issue_comment' ||
44+ github.event_name == 'pull_request_review_comment'
45+ ) &&
46+ contains(github.event.comment.body, '@gemini-cli') &&
47+ !contains(github.event.comment.body, '@gemini-cli /review') &&
48+ !contains(github.event.comment.body, '@gemini-cli /triage') &&
49+ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
5950 ) ||
6051 (
6152 github.event_name == 'pull_request_review' &&
6253 contains(github.event.review.body, '@gemini-cli') &&
63- !contains(github.event.review.body, '/review') &&
64- !contains(github.event.review.body, '/triage') &&
65- (
66- github.event.sender.type == 'User' && (
67- github.event.review.author_association == 'OWNER' ||
68- github.event.review.author_association == 'MEMBER' ||
69- github.event.review.author_association == 'COLLABORATOR'
70- )
71- )
72- ) ||
73- (
74- github.event_name == 'pull_request_review_comment' &&
75- contains(github.event.comment.body, '@gemini-cli') &&
76- !contains(github.event.comment.body, '/review') &&
77- !contains(github.event.comment.body, '/triage') &&
78- (
79- github.event.sender.type == 'User' && (
80- github.event.comment.author_association == 'OWNER' ||
81- github.event.comment.author_association == 'MEMBER' ||
82- github.event.comment.author_association == 'COLLABORATOR'
83- )
84- )
54+ !contains(github.event.review.body, '@gemini-cli /review') &&
55+ !contains(github.event.review.body, '@gemini-cli /triage') &&
56+ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)
8557 )
8658 timeout-minutes : 10
8759 runs-on : ' ubuntu-latest'
0 commit comments