fix(ci): restrict self-hosted PR-Agent comment triggers

This commit is contained in:
Tam Nhu Tran
2026-04-14 12:43:25 -04:00
parent 25216eaf33
commit e1271e2dbf
4 changed files with 7 additions and 7 deletions
+3 -6
View File
@@ -60,13 +60,10 @@ jobs:
(
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/') &&
github.event.comment.body == '/review' &&
(
github.event.sender.type != 'Bot' ||
(
github.event.sender.login == 'github-actions[bot]' &&
github.event.comment.body == '/review'
)
contains(fromJSON('["COLLABORATOR","MEMBER","OWNER"]'), github.event.comment.author_association) ||
github.event.sender.login == 'github-actions[bot]'
)
)
)