2020-12-15 20:05:29 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2020-12-16 16:08:37 +01:00
|
|
|
{{ _("Configure Git Update Detection") }} - {{ package.title }}
|
2020-12-15 20:05:29 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-01-14 19:25:28 +01:00
|
|
|
<a class="btn btn-secondary float-right" href="/help/update_config/">{{ _("Help") }}</a>
|
2020-12-16 16:08:37 +01:00
|
|
|
<h1>{{ _("Configure Git Update Detection") }}</h1>
|
2020-12-15 22:22:17 +01:00
|
|
|
|
|
|
|
<p>
|
2020-12-16 16:08:37 +01:00
|
|
|
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
|
2020-12-15 22:22:17 +01:00
|
|
|
</p>
|
2020-12-15 20:05:29 +01:00
|
|
|
|
|
|
|
<p>
|
2020-12-16 16:08:37 +01:00
|
|
|
{{ _("ContentDB will poll your Git repository every day, if your package is approved.") }}
|
2020-12-15 23:56:50 +01:00
|
|
|
{{ _("You should consider using webhooks or the API for faster releases.") }}
|
2021-01-30 16:18:56 +01:00
|
|
|
{{ _("Git Update Detection is clever enough to not create a release again if you've already created it manually or using webhooks/the API.") }}
|
2020-12-15 20:05:29 +01:00
|
|
|
</p>
|
|
|
|
|
2021-01-30 16:41:55 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
|
2020-12-15 20:05:29 +01:00
|
|
|
<form method="POST" action="">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h3 class="mt-5">{{ _("Trigger") }}</h3>
|
2021-01-30 16:41:55 +01:00
|
|
|
|
|
|
|
<p class="text-muted">
|
|
|
|
{{ _("The trigger is the event that triggers the action.") }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{{ render_radio_field(form.trigger, label_visible=false) }}
|
2020-12-15 23:51:06 +01:00
|
|
|
|
2021-01-30 16:22:19 +01:00
|
|
|
{{ render_field(form.ref, placeholder=_("Leave blank to use default branch"),
|
2021-01-30 16:41:55 +01:00
|
|
|
pattern="[A-Za-z0-9/._-]+", class_="mt-3",
|
2021-01-30 16:22:19 +01:00
|
|
|
hint=_("Currently, the branch name field is only used by the New Commit trigger.")) }}
|
2021-01-29 23:20:44 +01:00
|
|
|
|
2020-12-15 20:05:29 +01:00
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h3 class="mt-5">{{ _("Action") }}</h3>
|
2021-01-30 16:41:55 +01:00
|
|
|
|
|
|
|
<p class="text-muted">
|
|
|
|
{{ _("The action to perform when the trigger happens.") }}
|
|
|
|
{{ _("Once a package is marked as outdated, you won't receive any more notifications until it is marked up to date.") }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{{ render_radio_field(form.action, label_visible=false) }}
|
|
|
|
|
|
|
|
<p class="mt-5 pt-4">
|
2020-12-15 20:05:29 +01:00
|
|
|
{{ render_submit_field(form.submit) }}
|
2020-12-15 22:22:17 +01:00
|
|
|
{{ render_submit_field(form.disable, class_="btn btn-secondary ml-2") }}
|
2020-12-15 20:05:29 +01:00
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|