mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Improve updateconfig docs further
This commit is contained in:
parent
a02942b7e0
commit
46b60f9d24
@ -176,6 +176,7 @@ def admin_page():
|
||||
return redirect(url_for("admin.admin_page"))
|
||||
|
||||
elif action == "addupdateconfig":
|
||||
added = 0
|
||||
for pkg in Package.query.filter(Package.repo != None, Package.releases.any(), Package.update_config == None).all():
|
||||
pkg.update_config = PackageUpdateConfig()
|
||||
|
||||
@ -184,10 +185,11 @@ def admin_page():
|
||||
pkg.update_config.last_commit = release.commit_hash
|
||||
|
||||
db.session.add(pkg.update_config)
|
||||
added += 1
|
||||
|
||||
db.session.commit()
|
||||
|
||||
flash("Added update configs to packages", "success")
|
||||
flash("Added {} update configs".format(added), "success")
|
||||
return redirect(url_for("admin.admin_page"))
|
||||
|
||||
elif action == "runupdateconfig":
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
{% if package.repo %}
|
||||
<p>
|
||||
{{ _("When you push a commit or tag to your Git repository, ContentDB can create a new release automatically.") }}
|
||||
{{ _("ContentDB will check your Git repository at 2am UTC every day, but you can use webhooks or the API for faster updates.") }}
|
||||
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
|
||||
{{ _("ContentDB will check your Git repository every day, but you can use webhooks or the API for faster updates.") }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -23,8 +23,9 @@
|
||||
</p>
|
||||
|
||||
<p class="mt-5">
|
||||
<a class="btn btn-primary" href="{{ package.getUpdateConfigURL() }}">Set up automatic releases</a>
|
||||
<a class="btn btn-secondary ml-2" href="{{ package.getCreateReleaseURL() }}">Create releases manually</a>
|
||||
<a class="btn btn-primary" href="{{ package.getUpdateConfigURL() }}">Automatically</a>
|
||||
<a class="btn btn-secondary ml-2" href="{{ package.getUpdateConfigURL() }}">Manually, enable reminders</a>
|
||||
<a class="btn btn-secondary ml-2" href="{{ package.getCreateReleaseURL() }}">Manually, no reminders</a>
|
||||
<a class="btn btn-secondary ml-2" href="{{ package.getDetailsURL() }}">Later</a>
|
||||
</p>
|
||||
{% else %}
|
||||
|
@ -1,18 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ _("Configure Automatic Releases") }} - {{ package.title }}
|
||||
{{ _("Configure Git Update Detection") }} - {{ package.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ _("Configure Automatic Releases") }}</h1>
|
||||
<h1>{{ _("Configure Git Update Detection") }}</h1>
|
||||
|
||||
<p>
|
||||
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically.") }}
|
||||
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ _("ContentDB will poll your Git repository at 2am UTC every day, if your package is approved.") }}
|
||||
{{ _("ContentDB will poll your Git repository every day, if your package is approved.") }}
|
||||
{{ _("You should consider using webhooks or the API for faster releases.") }}
|
||||
</p>
|
||||
|
||||
@ -33,10 +33,13 @@
|
||||
{{ render_field(form.trigger, class_="mt-5") }}
|
||||
|
||||
<p class="text-warning mb-4">
|
||||
<span class="fas fa-exclamation-triangle mr-2"></span>
|
||||
<small>
|
||||
<span class="fas fa-exclamation-triangle mr-2"></span>
|
||||
|
||||
{{ _("The new tag trigger isn't supported yet.") }}
|
||||
{{ _("In the meantime, you can use webhooks to create releases on tag events.") }}
|
||||
{{ _("The new tag trigger isn't supported yet.") }}
|
||||
{{ _("If you choose it, it won't trigger until it is supported.") }}
|
||||
{{ _("In the meantime, you can use webhooks to create releases on tag events.") }}
|
||||
</small>
|
||||
</p>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user