Add title and ref query args to create release
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% macro render_outdated_packages(outdated_packages) -%}
|
||||
<ul class="list-group mt-3">
|
||||
{% for package in outdated_packages %}
|
||||
{% set config = package.update_config %}
|
||||
<li class="list-group-item">
|
||||
<div class="row">
|
||||
{% if package %}
|
||||
@@ -17,18 +18,20 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="col-sm">
|
||||
{% if package.update_config.trigger == package.update_config.trigger.TAG and package.update_config.last_tag %}
|
||||
{{ _("New tag: %(tag)s", tag=package.update_config.last_tag) }}
|
||||
{% if config.trigger == config.trigger.TAG and config.last_tag %}
|
||||
{{ _("New tag: %(tag)s", tag=config.last_tag) }}
|
||||
{% else %}
|
||||
{{ _("Git repo has commit %(ref)s", ref=package.update_config.last_commit[0:5]) }}
|
||||
{{ _("Git repo has commit %(ref)s", ref=config.last_commit[0:5]) }}
|
||||
{% endif %}
|
||||
<span class="text-muted ml-3">
|
||||
{{ package.update_config.outdated_at | datetime }}
|
||||
{{ config.outdated_at | datetime }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-auto">
|
||||
<a class="btn btn-sm btn-primary mr-2" href="{{ package.getCreateReleaseURL() }}">
|
||||
{% set release_title = config.last_tag or (config.outdated_at | isodate) %}
|
||||
<a class="btn btn-sm btn-primary mr-2"
|
||||
href="{{ package.getCreateReleaseURL(title=release_title, ref=config.last_tag or config.last_commit) }}">
|
||||
<i class="fas fa-plus mr-1"></i>
|
||||
{{ _("Release") }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user