Skip to content

Commit d1cec5e

Browse files
daviianlunny
authored andcommitted
fix panic on gogs webhook creation (#2675) (#2676)
* 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 73ad7d2 commit d1cec5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func WebHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) {
167167
}
168168

169169
// GogsHooksNewPost response for creating webhook
170-
func GogsHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) {
170+
func GogsHooksNewPost(ctx *context.Context, form auth.NewGogshookForm) {
171171
ctx.Data["Title"] = ctx.Tr("repo.settings.add_webhook")
172172
ctx.Data["PageIsSettingsHooks"] = true
173173
ctx.Data["PageIsSettingsHooksNew"] = true
@@ -361,7 +361,7 @@ func WebHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) {
361361
}
362362

363363
// GogsHooksEditPost response for editing gogs hook
364-
func GogsHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) {
364+
func GogsHooksEditPost(ctx *context.Context, form auth.NewGogshookForm) {
365365
ctx.Data["Title"] = ctx.Tr("repo.settings.update_webhook")
366366
ctx.Data["PageIsSettingsHooks"] = true
367367
ctx.Data["PageIsSettingsHooksEdit"] = true

0 commit comments

Comments
 (0)