{{$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 := (eq .HookType "sourcehut_builds")}} {{if not $skipAuthorizationHeader}}
{{if ne .HookType "matrix"}}{{/* Matrix doesn't make the authorization optional but it is implied by the help string, should be changed.*/}} {{ctx.Locale.Tr "repo.settings.authorization_header_desc" ("Bearer token123456, Basic YWxhZGRpbjpvcGVuc2VzYW1l" | SafeHTML)}} {{end}}
{{end}}
{{ctx.Locale.Tr "repo.settings.active_helper"}}
{{if $isNew}} {{else}} {{ctx.Locale.Tr "repo.settings.delete_webhook"}} {{end}}
{{template "repo/settings/webhook/delete_modal" .}}