@@ -19,16 +19,22 @@ permissions:
1919
2020jobs :
2121 marvin :
22+ # Restrict all triggers to repo members (OWNER, MEMBER, COLLABORATOR)
2223 if : |
23- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/marvin')) ||
24- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/marvin')) ||
25- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '/marvin')) ||
26- (github.event_name == 'pull_request' && contains(github.event.pull_request.body, '/marvin')) ||
27- (github.event_name == 'issues' && contains(github.event.issue.body, '/marvin')) ||
28- (github.event_name == 'discussion' && contains(github.event.discussion.body, '/marvin')) ||
29- (github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin')) ||
30- (github.event_name == 'issues' && github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') ||
31- (github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
24+ (
25+ (github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion_comment') &&
26+ contains(github.event.comment.body, '/marvin') &&
27+ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
28+ ) ||
29+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '/marvin') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) ||
30+ (github.event_name == 'pull_request' && contains(github.event.pull_request.body, '/marvin') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association)) ||
31+ (github.event_name == 'issues' && contains(github.event.issue.body, '/marvin') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)) ||
32+ (github.event_name == 'discussion' && contains(github.event.discussion.body, '/marvin') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.discussion.author_association)) ||
33+ (
34+ github.event_name == 'issues' &&
35+ ((github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') || (github.event.action == 'labeled' && github.event.label.name == 'marvin')) &&
36+ contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.sender.author_association)
37+ )
3238 runs-on : ubuntu-latest
3339 steps :
3440 - uses : actions/checkout@v6
0 commit comments