mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-15 22:21:20 +00:00
fix(ci): restrict self-hosted PR-Agent comment triggers
This commit is contained in:
@@ -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]'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user