新增: webhook类型softbot
This commit is contained in:
parent
7968d1ad46
commit
552ea3e101
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
type CreateHookOption struct {
|
type CreateHookOption struct {
|
||||||
// required: true
|
// required: true
|
||||||
// enum: dingtalk,discord,gitea,gogs,msteams,slack,telegram,feishu,jianmu
|
// enum: dingtalk,discord,gitea,gogs,msteams,slack,telegram,feishu,jianmu,softbot
|
||||||
Type string `json:"type" binding:"Required"`
|
Type string `json:"type" binding:"Required"`
|
||||||
// required: true
|
// required: true
|
||||||
Config gitea_api.CreateHookOptionConfig `json:"config" binding:"Required"`
|
Config gitea_api.CreateHookOptionConfig `json:"config" binding:"Required"`
|
||||||
|
|
|
@ -185,7 +185,7 @@ func isValidHookHttpMethod(name string) bool {
|
||||||
|
|
||||||
func isValidHookTaskType(name string) bool {
|
func isValidHookTaskType(name string) bool {
|
||||||
// 建木devops
|
// 建木devops
|
||||||
if name == "jianmu" {
|
if name == "jianmu" || name == "softbot" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue