@@ -444,15 +444,15 @@ func RegisterRoutes(m *macaron.Macaron) {
444444 m .Post ("/delete" , admin .DeleteDefaultWebhook )
445445 m .Get ("/:type/new" , repo .WebhooksNew )
446446 m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
447- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
447+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
448448 m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
449449 m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
450450 m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
451451 m .Post ("/telegram/new" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksNewPost )
452452 m .Post ("/msteams/new" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
453453 m .Get ("/:id" , repo .WebHooksEdit )
454454 m .Post ("/gitea/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksEditPost )
455- m .Post ("/gogs/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksEditPost )
455+ m .Post ("/gogs/:id" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksEditPost )
456456 m .Post ("/slack/:id" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksEditPost )
457457 m .Post ("/discord/:id" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksEditPost )
458458 m .Post ("/dingtalk/:id" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksEditPost )
@@ -585,7 +585,7 @@ func RegisterRoutes(m *macaron.Macaron) {
585585 m .Post ("/delete" , org .DeleteWebhook )
586586 m .Get ("/:type/new" , repo .WebhooksNew )
587587 m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
588- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
588+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
589589 m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
590590 m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
591591 m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
@@ -647,7 +647,7 @@ func RegisterRoutes(m *macaron.Macaron) {
647647 m .Post ("/delete" , repo .DeleteWebhook )
648648 m .Get ("/:type/new" , repo .WebhooksNew )
649649 m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
650- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
650+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
651651 m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
652652 m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
653653 m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
0 commit comments