新增: webhook类型softbot

This commit is contained in:
yystopf 2023-03-30 11:45:30 +08:00
parent 7968d1ad46
commit 552ea3e101
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import (
type CreateHookOption struct {
// 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"`
// required: true
Config gitea_api.CreateHookOptionConfig `json:"config" binding:"Required"`

View File

@ -185,7 +185,7 @@ func isValidHookHttpMethod(name string) bool {
func isValidHookTaskType(name string) bool {
// 建木devops
if name == "jianmu" {
if name == "jianmu" || name == "softbot" {
return true
}