Document that new tag isn't implemented yet

This commit is contained in:
rubenwardy 2020-12-15 22:51:06 +00:00
parent 7be0616d38
commit c5d99e00d8
3 changed files with 12 additions and 1 deletions

@ -255,7 +255,7 @@ class PackageUpdateConfigFrom(FlaskForm):
ref = StringField("Branch name", [Optional()], default=None) ref = StringField("Branch name", [Optional()], default=None)
action = SelectField("Action", [InputRequired()], choices=[("notification", "Notification"), ("make_release", "Create Release")], default="make_release") action = SelectField("Action", [InputRequired()], choices=[("notification", "Notification"), ("make_release", "Create Release")], default="make_release")
submit = SubmitField("Save Settings") submit = SubmitField("Save Settings")
disable = SubmitField("Disable") disable = SubmitField("Disable Automation")
@bp.route("/packages/<author>/<name>/update-config/", methods=["GET", "POST"]) @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 config = package.update_config
if config.trigger != PackageUpdateTrigger.COMMIT:
return
err = None err = None
try: try:
hash = get_commit_hash(package.repo, package.update_config.ref) hash = get_commit_hash(package.repo, package.update_config.ref)

@ -31,6 +31,14 @@
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
{{ render_field(form.trigger, class_="mt-5") }} {{ 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", {{ render_field(form.ref, placeholder="Leave blank to use default branch",
pattern="[A-Za-z0-9/._-]+") }} pattern="[A-Za-z0-9/._-]+") }}
{{ render_field(form.action) }} {{ render_field(form.action) }}