{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}}
{{ctx.Locale.Tr "repo.settings.event_desc"}}
{{ctx.Locale.Tr "repo.settings.event_header_repository"}}
{{ctx.Locale.Tr "repo.settings.event_header_issue"}}
{{ctx.Locale.Tr "repo.settings.event_header_pull_request"}}
{{ctx.Locale.Tr "repo.settings.branch_filter_desc"}}
{{$skipAuthorizationHeader := or (eq .HookType "sourcehut_builds") (eq .HookType "matrix")}} {{if not $skipAuthorizationHeader}}
{{ctx.Locale.Tr "repo.settings.authorization_header_desc" ("Bearer token123456, Basic YWxhZGRpbjpvcGVuc2VzYW1l" | SafeHTML)}}
{{end}}
{{if $isNew}} {{else}} {{ctx.Locale.Tr "repo.settings.delete_webhook"}} {{end}}
{{template "repo/settings/webhook/delete_modal" .}}