diff options
author | oliverpool <git@olivier.pfad.fr> | 2024-04-08 17:50:36 +0200 |
---|---|---|
committer | oliverpool <git@olivier.pfad.fr> | 2024-04-16 08:59:11 +0200 |
commit | 3155e21cbbd945653c754cc074baf2941024f6d1 (patch) | |
tree | 3ebe77eb6595f5e220371b2144d204fd5a6f9fe0 /templates/webhook | |
parent | move webhook/settings file around (diff) | |
download | forgejo-3155e21cbbd945653c754cc074baf2941024f6d1.tar.xz forgejo-3155e21cbbd945653c754cc074baf2941024f6d1.zip |
webhook: sourcehut_builds: prefill sr.ht as defaults
Diffstat (limited to 'templates/webhook')
-rw-r--r-- | templates/webhook/new/sourcehut_builds.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/webhook/new/sourcehut_builds.tmpl b/templates/webhook/new/sourcehut_builds.tmpl index d6fe3e7f10..e18b828f8d 100644 --- a/templates/webhook/new/sourcehut_builds.tmpl +++ b/templates/webhook/new/sourcehut_builds.tmpl @@ -2,12 +2,12 @@ <form class="ui form" action="{{.BaseLink}}/{{or .Webhook.ID "sourcehut_builds/new"}}" method="post"> {{.CsrfTokenHtml}} <div class="required field {{if .Err_PayloadURL}}error{{end}}"> - <label for="payload_url">{{ctx.Locale.Tr "repo.settings.sourcehut_builds.graphql_url"}}</label> - <input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required> + <label for="payload_url">{{ctx.Locale.Tr "repo.settings.graphql_url"}}</label> + <input id="payload_url" name="payload_url" type="url" value="{{or .Webhook.URL "https://builds.sr.ht/query"}}" autofocus required> </div> <div class="required field {{if .Err_ManifestPath}}error{{end}}"> <label for="manifest_path">{{ctx.Locale.Tr "repo.settings.sourcehut_builds.manifest_path"}}</label> - <input id="manifest_path" name="manifest_path" type="text" value="{{.HookMetadata.ManifestPath}}" required> + <input id="manifest_path" name="manifest_path" type="text" value="{{or .HookMetadata.ManifestPath ".build.yml"}}" required> </div> <div class="field"> <label>{{ctx.Locale.Tr "repo.settings.sourcehut_builds.visibility"}}</label> |