修改创建 hook接口
This commit is contained in:
commit
80e992aa49
|
|
@ -137,8 +137,9 @@ func addHook(ctx *context.APIContext, form *api.CreateHookOption, orgID, repoID
|
|||
},
|
||||
BranchFilter: form.BranchFilter,
|
||||
},
|
||||
IsActive: form.Active,
|
||||
Type: models.HookType(form.Type),
|
||||
BranchFilter: form.BranchFilter,
|
||||
IsActive: form.Active,
|
||||
Type: models.HookType(form.Type),
|
||||
}
|
||||
if w.Type == models.SLACK {
|
||||
channel, ok := form.Config["channel"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue