mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 01:44:10 -05:00
HookType is case-sensitive
Update webhook wasn’t showing up because of the wrong case
This commit is contained in:
parent
8d2fe064c5
commit
7269b06fd5
1 changed files with 2 additions and 2 deletions
|
@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
|
||||||
case models.SLACK:
|
case models.SLACK:
|
||||||
{
|
{
|
||||||
ctx.Data["SlackHook"] = w.GetSlackHook()
|
ctx.Data["SlackHook"] = w.GetSlackHook()
|
||||||
ctx.Data["HookType"] = "slack"
|
ctx.Data["HookType"] = "Slack"
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ctx.Data["HookType"] = "gogs"
|
ctx.Data["HookType"] = "Gogs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
w.GetEvent()
|
w.GetEvent()
|
||||||
|
|
Loading…
Reference in a new issue