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

This commit is contained in:
Tam Nhu Tran committed 2026-04-14 12:43:25 -04:00
1 parent 25216eaf33
commit e1271e2dbf
4 files changed
+7 -7

No files matched your search

+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]'
)
)
)