Merge branch 'feature' into develop

This commit is contained in:
yystopf 2024-04-17 08:48:48 +08:00
commit 8ad0cd1cf0
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,softbot
// enum: dingtalk,discord,gitea,gogs,msteams,slack,telegram,feishu,jianmu,softbot,reposync
Type string `json:"type" binding:"Required"`
// required: true
Config gitea_api.CreateHookOptionConfig `json:"config" binding:"Required"`

View File

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