2020-12-15 20:05:29 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2020-12-15 22:22:17 +01:00
|
|
|
{{ _("Configure Automatic Releases") }} - {{ package.title }}
|
2020-12-15 20:05:29 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-12-15 22:22:17 +01:00
|
|
|
<h1>{{ _("Configure Automatic Releases") }}</h1>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically.") }}
|
|
|
|
</p>
|
2020-12-15 20:05:29 +01:00
|
|
|
|
|
|
|
<p>
|
|
|
|
{{ _("ContentDB will poll your Git repository at 2am UTC every day.") }}
|
|
|
|
{{ _("You should consider using webhooks or the API for faster rollouts.") }}
|
|
|
|
</p>
|
|
|
|
|
2020-12-15 22:22:17 +01:00
|
|
|
{% if package.checkPerm(current_user, "APPROVE_RELEASE") and package.getIsOnGitHub() %}
|
|
|
|
<p class="alert alert-info mb-4">
|
|
|
|
<a class="float-right btn btn-sm btn-info" href="{{ url_for('flatpage', path='help/release_webhooks') }}">{{ _("Learn more") }}</a>
|
|
|
|
<a class="float-right btn btn-sm btn-info mr-2" href="{{ url_for('github.setup_webhook', pid=package.id) }}">{{ _("Setup webhook") }}</a>
|
|
|
|
<i class="fas fa-info mr-2"></i>
|
|
|
|
|
|
|
|
{{ _("Create releases faster by using a webhook.") }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-12-15 20:05:29 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
|
|
|
<form method="POST" action="">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2020-12-15 22:22:17 +01:00
|
|
|
{{ render_field(form.trigger, class_="mt-5") }}
|
2020-12-15 23:08:10 +01:00
|
|
|
{{ render_field(form.ref, placeholder="Leave blank to use default branch",
|
|
|
|
pattern="[A-Za-z0-9/._-]+") }}
|
2020-12-15 22:22:17 +01:00
|
|
|
{{ render_field(form.action) }}
|
2020-12-15 20:05:29 +01:00
|
|
|
|
|
|
|
<p class="mt-5">
|
|
|
|
{{ 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 %}
|