File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,23 @@ jobs:
2222 environment : dev
2323 runs-on : ubuntu-latest
2424 # Only run if the comment contains "/ai-review" or if it's a PR review comment
25- if : |
26- (github.event_name == 'issue_comment' &&
27- github.event.issue.pull_request &&
28- contains(github.event.comment.body, '/ai-review')) ||
29- github.event_name == 'pull_request_review_comment'
25+ if : >
26+ (
27+ github.event_name == 'issue_comment' &&
28+ github.event.issue.pull_request &&
29+ contains(github.event.comment.body, '/ai-review') &&
30+ (
31+ github.event.comment.author_association == 'MEMBER' ||
32+ github.event.comment.author_association == 'OWNER'
33+ )
34+ ) ||
35+ (
36+ github.event_name == 'pull_request_review_comment' &&
37+ (
38+ github.event.comment.author_association == 'MEMBER' ||
39+ github.event.comment.author_association == 'OWNER'
40+ )
41+ )
3042 steps :
3143 - name : Get PR details
3244 id : pr
You can’t perform that action at this time.
0 commit comments