forked from Gitlink/gitea_hat
Merge branch 'feature' into develop
This commit is contained in:
commit
8ad0cd1cf0
|
|
@ -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"`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue