mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Document that new tag isn't implemented yet
This commit is contained in:
parent
7be0616d38
commit
c5d99e00d8
@ -255,7 +255,7 @@ class PackageUpdateConfigFrom(FlaskForm):
|
||||
ref = StringField("Branch name", [Optional()], default=None)
|
||||
action = SelectField("Action", [InputRequired()], choices=[("notification", "Notification"), ("make_release", "Create Release")], default="make_release")
|
||||
submit = SubmitField("Save Settings")
|
||||
disable = SubmitField("Disable")
|
||||
disable = SubmitField("Disable Automation")
|
||||
|
||||
|
||||
@bp.route("/packages/<author>/<name>/update-config/", methods=["GET", "POST"])
|
||||
|
@ -307,6 +307,9 @@ def check_update_config(self, package_id):
|
||||
|
||||
config = package.update_config
|
||||
|
||||
if config.trigger != PackageUpdateTrigger.COMMIT:
|
||||
return
|
||||
|
||||
err = None
|
||||
try:
|
||||
hash = get_commit_hash(package.repo, package.update_config.ref)
|
||||
|
@ -31,6 +31,14 @@
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
{{ render_field(form.trigger, class_="mt-5") }}
|
||||
|
||||
<p class="text-warning mb-4">
|
||||
<span class="fas fa-exclamation-triangle mr-2"></span>
|
||||
|
||||
{{ _("The new tag trigger isn't supported yet.") }}
|
||||
</p>
|
||||
|
||||
|
||||
{{ render_field(form.ref, placeholder="Leave blank to use default branch",
|
||||
pattern="[A-Za-z0-9/._-]+") }}
|
||||
{{ render_field(form.action) }}
|
||||
|
Loading…
Reference in New Issue
Block a user