{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}}
{{ctx.Locale.Tr "repo.settings.event_desc"}}
{{ctx.Locale.Tr "repo.settings.event_create_desc"}}
{{ctx.Locale.Tr "repo.settings.event_delete_desc"}}
{{ctx.Locale.Tr "repo.settings.event_fork_desc"}}
{{ctx.Locale.Tr "repo.settings.event_push_desc"}}
{{ctx.Locale.Tr "repo.settings.event_repository_desc"}}
{{ctx.Locale.Tr "repo.settings.event_release_desc"}}
{{ctx.Locale.Tr "repo.settings.event_package_desc"}}
{{ctx.Locale.Tr "repo.settings.event_wiki_desc"}}
{{ctx.Locale.Tr "repo.settings.event_issues_desc"}}
{{ctx.Locale.Tr "repo.settings.event_issue_assign_desc"}}
{{ctx.Locale.Tr "repo.settings.event_issue_label_desc"}}
{{ctx.Locale.Tr "repo.settings.event_issue_milestone_desc"}}
{{ctx.Locale.Tr "repo.settings.event_issue_comment_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_assign_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_label_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_milestone_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_comment_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_review_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_sync_desc"}}
{{ctx.Locale.Tr "repo.settings.event_pull_request_review_request_desc"}}
{{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" .}}