Skip to content

Commit 0cef8ce

Browse files
daviianlunny
authored andcommitted
fix panic on gogs webhook creation (#2675)
* fix panic on gogs webhook creation Signed-off-by: David Schneiderbauer <[email protected]> * fix panic in gogs webhook edit Signed-off-by: David Schneiderbauer <[email protected]>
1 parent ebac051 commit 0cef8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/webhook.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func WebHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) {
174174
}
175175

176176
// GogsHooksNewPost response for creating webhook
177-
func GogsHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) {
177+
func GogsHooksNewPost(ctx *context.Context, form auth.NewGogshookForm) {
178178
ctx.Data["Title"] = ctx.Tr("repo.settings.add_webhook")
179179
ctx.Data["PageIsSettingsHooks"] = true
180180
ctx.Data["PageIsSettingsHooksNew"] = true
@@ -420,7 +420,7 @@ func WebHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) {
420420
}
421421

422422
// GogsHooksEditPost response for editing gogs hook
423-
func GogsHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) {
423+
func GogsHooksEditPost(ctx *context.Context, form auth.NewGogshookForm) {
424424
ctx.Data["Title"] = ctx.Tr("repo.settings.update_webhook")
425425
ctx.Data["PageIsSettingsHooks"] = true
426426
ctx.Data["PageIsSettingsHooksEdit"] = true

0 commit comments

Comments
 (0)