From d240da7672b7b80a17a2ec364eaa63f99cd555e7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao <xiaolunwen@gmail.com> Date: Wed, 5 Feb 2025 12:10:43 -0800 Subject: [PATCH] Fix a bug caused by status webhook template --- templates/repo/settings/webhook/settings.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/webhook/settings.tmpl b/templates/repo/settings/webhook/settings.tmpl index b31003f2f1b9c..07e7305866814 100644 --- a/templates/repo/settings/webhook/settings.tmpl +++ b/templates/repo/settings/webhook/settings.tmpl @@ -113,7 +113,7 @@ <div class="seven wide column"> <div class="field"> <div class="ui checkbox"> - <input name="status" type="checkbox" {{if .Webhook.HookEvents.Get "status"}}checked{{end}}> + <input name="status" type="checkbox" {{if .Webhook.Status}}checked{{end}}> <label>{{ctx.Locale.Tr "repo.settings.event_statuses"}}</label> <span class="help">{{ctx.Locale.Tr "repo.settings.event_statuses_desc"}}</span> </div>