webhook: sourcehut_builds: prefill sr.ht as defaults
This commit is contained in:
parent
6227422c4d
commit
3155e21cbb
|
@ -2378,6 +2378,7 @@ settings.slack_token = Token
|
||||||
settings.slack_domain = Domain
|
settings.slack_domain = Domain
|
||||||
settings.slack_channel = Channel
|
settings.slack_channel = Channel
|
||||||
settings.add_web_hook_desc = Integrate <a target="_blank" rel="noreferrer" href="%s">%s</a> into your repository.
|
settings.add_web_hook_desc = Integrate <a target="_blank" rel="noreferrer" href="%s">%s</a> into your repository.
|
||||||
|
settings.graphql_url = GraphQL URL
|
||||||
settings.web_hook_name_gitea = Gitea
|
settings.web_hook_name_gitea = Gitea
|
||||||
settings.web_hook_name_forgejo = Forgejo
|
settings.web_hook_name_forgejo = Forgejo
|
||||||
settings.web_hook_name_gogs = Gogs
|
settings.web_hook_name_gogs = Gogs
|
||||||
|
@ -2397,7 +2398,6 @@ settings.packagist_api_token = API token
|
||||||
settings.packagist_package_url = Packagist package URL
|
settings.packagist_package_url = Packagist package URL
|
||||||
settings.web_hook_name_sourcehut_builds = SourceHut Builds
|
settings.web_hook_name_sourcehut_builds = SourceHut Builds
|
||||||
settings.sourcehut_builds.manifest_path = Build manifest path
|
settings.sourcehut_builds.manifest_path = Build manifest path
|
||||||
settings.sourcehut_builds.graphql_url = GraphQL URL (e.g. https://builds.sr.ht/query)
|
|
||||||
settings.sourcehut_builds.visibility = Job visibility
|
settings.sourcehut_builds.visibility = Job visibility
|
||||||
settings.sourcehut_builds.secrets = Secrets
|
settings.sourcehut_builds.secrets = Secrets
|
||||||
settings.sourcehut_builds.secrets_helper = Give the job access to the build secrets (requires the SECRETS:RO grant)
|
settings.sourcehut_builds.secrets_helper = Give the job access to the build secrets (requires the SECRETS:RO grant)
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<form class="ui form" action="{{.BaseLink}}/{{or .Webhook.ID "sourcehut_builds/new"}}" method="post">
|
<form class="ui form" action="{{.BaseLink}}/{{or .Webhook.ID "sourcehut_builds/new"}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
|
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
|
||||||
<label for="payload_url">{{ctx.Locale.Tr "repo.settings.sourcehut_builds.graphql_url"}}</label>
|
<label for="payload_url">{{ctx.Locale.Tr "repo.settings.graphql_url"}}</label>
|
||||||
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
|
<input id="payload_url" name="payload_url" type="url" value="{{or .Webhook.URL "https://builds.sr.ht/query"}}" autofocus required>
|
||||||
</div>
|
</div>
|
||||||
<div class="required field {{if .Err_ManifestPath}}error{{end}}">
|
<div class="required field {{if .Err_ManifestPath}}error{{end}}">
|
||||||
<label for="manifest_path">{{ctx.Locale.Tr "repo.settings.sourcehut_builds.manifest_path"}}</label>
|
<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>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{ctx.Locale.Tr "repo.settings.sourcehut_builds.visibility"}}</label>
|
<label>{{ctx.Locale.Tr "repo.settings.sourcehut_builds.visibility"}}</label>
|
||||||
|
|
Loading…
Reference in New Issue