Skip to content

Commit 3acc306

Browse files
committed
Revert hook type spacing fix
1 parent aa583d3 commit 3acc306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func checkWebhook(ctx *context.Context) (*orgRepoCtx, *models.Webhook) {
650650
return nil, nil
651651
}
652652

653-
ctx.Data["HookType"] = strings.TrimSpace(w.Type)
653+
ctx.Data["HookType"] = w.Type
654654
switch w.Type {
655655
case models.SLACK:
656656
ctx.Data["SlackHook"] = webhook.GetSlackHook(w)

0 commit comments

Comments
 (0)