mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 20:13:43 +00:00
fix(ci): exclude bot comments from triggering AI review
Bot progress comments were triggering new workflow runs, which cancelled in-progress reviews due to concurrency group. Added check for github.event.comment.user.type != 'Bot'.
This commit is contained in:
1 parent
f88ad8e781
commit
ce70617ee9
1 file changed
+3
-2
@@ -38,13 +38,14 @@ jobs:
|
||||
|
||||
# Conditions:
|
||||
# - PR event: only on opened (not synchronize to avoid cancel-on-push)
|
||||
# - Comment event: only if it's a PR and contains /review
|
||||
# - Comment event: only if it's a PR, contains /review, and NOT from a bot
|
||||
if: >
|
||||
github.event_name == 'pull_request_target' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'issue_comment' &&
|
||||
github.event.issue.pull_request &&
|
||||
contains(github.event.comment.body, '/review'))
|
||||
contains(github.event.comment.body, '/review') &&
|
||||
github.event.comment.user.type != 'Bot')
|
||||
|
||||
# CLIProxy environment for model routing
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user