Skip to content

Commit

Permalink
feat:MR 事件触发器支持 WIP TencentBlueKing#10683
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Aug 1, 2024
1 parent d77f317 commit efe949d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ class KeywordSkipFilter(

override fun doFilter(response: WebhookFilterResponse): Boolean {
logger.info("$pipelineId|triggerOnMessage:$triggerOnMessage|skipWord:$keyWord|enable:$enable")
return when{
return when {
enable == false -> true
keyWord.none { triggerOnMessage?.contains(it) == true } -> {
keyWord.any { triggerOnMessage?.contains(it) == true } -> {
response.failedReason = failedReason
false
}

else -> true
}
}
Expand Down

0 comments on commit efe949d

Please sign in to comment.