]> source.dussan.org Git - gitea.git/commitdiff
HookType is case-sensitive
authorChristopher Brickley <brickley@gmail.com>
Thu, 4 Sep 2014 02:14:55 +0000 (22:14 -0400)
committerChristopher Brickley <brickley@gmail.com>
Fri, 5 Sep 2014 11:19:34 +0000 (07:19 -0400)
Update webhook wasn’t showing up because of the wrong case

routers/repo/setting.go

index fba9eed6a20fe4284eddcfdea58f51a17e6ac454..74567812220e7bbea5453f181dfdf73f69569254 100644 (file)
@@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
        case models.SLACK:
                {
                        ctx.Data["SlackHook"] = w.GetSlackHook()
-                       ctx.Data["HookType"] = "slack"
+                       ctx.Data["HookType"] = "Slack"
                }
        default:
                {
-                       ctx.Data["HookType"] = "gogs"
+                       ctx.Data["HookType"] = "Gogs"
                }
        }
        w.GetEvent()