Skip to content

Commit 7269b06

Browse files
committed
HookType is case-sensitive
Update webhook wasn’t showing up because of the wrong case
1 parent 8d2fe06 commit 7269b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/setting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
354354
case models.SLACK:
355355
{
356356
ctx.Data["SlackHook"] = w.GetSlackHook()
357-
ctx.Data["HookType"] = "slack"
357+
ctx.Data["HookType"] = "Slack"
358358
}
359359
default:
360360
{
361-
ctx.Data["HookType"] = "gogs"
361+
ctx.Data["HookType"] = "Gogs"
362362
}
363363
}
364364
w.GetEvent()

0 commit comments

Comments
 (0)