Skip to content

Commit 240c6fe

Browse files
authored
Update code.ai-review.yml
1 parent bcd1514 commit 240c6fe

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)