Skip to content

Commit

Permalink
feat: github触发器事件补充 #9372
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Sep 21, 2023
1 parent 0fa2e80 commit 1501b27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,3 @@ abstract class WebHookTriggerElement(
override var id: String? = null,
override var status: String? = null
) : Element(name, id, status)

fun WebHookTriggerElement.joinToString(list: List<String>?): String {
return if (list.isNullOrEmpty()) {
""
} else {
list.joinToString(",")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ package com.tencent.devops.common.webhook.service.code.param
import com.tencent.devops.common.api.util.EnvUtils
import com.tencent.devops.common.pipeline.pojo.element.trigger.CodeGithubWebHookTriggerElement
import com.tencent.devops.common.pipeline.pojo.element.trigger.enums.CodeType
import com.tencent.devops.common.pipeline.pojo.element.trigger.joinToString
import com.tencent.devops.common.pipeline.utils.RepositoryConfigUtils
import com.tencent.devops.common.webhook.pojo.code.WebHookParams
import org.springframework.stereotype.Service
Expand Down Expand Up @@ -77,4 +76,12 @@ class GithubWebhookElementParams : ScmWebhookElementParams<CodeGithubWebHookTrig
}
return params
}

fun joinToString(list: List<String>?): String {
return if (list.isNullOrEmpty()) {
""
} else {
list.joinToString(",")
}
}
}

0 comments on commit 1501b27

Please sign in to comment.