We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent badb22b commit 6bf9d75Copy full SHA for 6bf9d75
devops-scm-api/src/main/kotlin/com/tencent/devops/scm/api/pojo/HookEvents.kt
@@ -1,5 +1,6 @@
1
package com.tencent.devops.scm.api.pojo
2
3
+import com.fasterxml.jackson.annotation.JsonIgnore
4
import com.tencent.devops.scm.api.enums.ScmEventType
5
6
data class HookEvents(
@@ -31,6 +32,7 @@ data class HookEvents(
31
32
/**
33
* 获取启用的事件类型
34
*/
35
+ @JsonIgnore
36
fun getEnabledEvents(): List<String> = mutableListOf<String>().apply {
37
if (issue == true) add(ScmEventType.ISSUE.value)
38
if (issueComment == true) add(ScmEventType.ISSUE_COMMENT.value)
0 commit comments