mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 23:12:40 +01:00
webhook: sourcehut_builds: prefill sr.ht as defaults
This commit is contained in:
parent
6227422c4d
commit
3155e21cbb
2 changed files with 4 additions and 4 deletions
|
@ -2378,6 +2378,7 @@ settings.slack_token = Token
|
|||
settings.slack_domain = Domain
|
||||
settings.slack_channel = Channel
|
||||
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_forgejo = Forgejo
|
||||
settings.web_hook_name_gogs = Gogs
|
||||
|
@ -2397,7 +2398,6 @@ settings.packagist_api_token = API token
|
|||
settings.packagist_package_url = Packagist package URL
|
||||
settings.web_hook_name_sourcehut_builds = SourceHut Builds
|
||||
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.secrets = Secrets
|
||||
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">
|
||||
{{.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>
|
||||
|
|
Loading…
Reference in a new issue