mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Make Towncrier compatible with the release script
This commit is contained in:
parent
4b3e6e3682
commit
db3a6b490a
1 changed files with 8 additions and 2 deletions
|
@ -25,13 +25,19 @@
|
|||
{%- set gh_issue = value.replace("#", "") -%}
|
||||
{{- links.append( "[#%s](%s/issues/%s)" | format(gh_issue, gh_element, gh_issue) ) | default("", True) -}}
|
||||
{%- elif value.startswith("pr-") %}
|
||||
{%- set pr = value.replace("pr-", "#") -%}
|
||||
{{- links.append(pr) | default("", True) -}}
|
||||
{%- set pr = value.replace("pr-", "") -%}
|
||||
{{- links.append( "[#%s](%s/pull/%s)" | format(pr, gh_element, pr) ) | default("", True) -}}
|
||||
{%- elif value.startswith("x-nolink-") %}
|
||||
{{- nil | default("", True) -}}
|
||||
{% else %}
|
||||
{{- links.append(value) | default("", True) -}}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% if links|length == 0 %}
|
||||
- {{ text }}
|
||||
{% else %}
|
||||
- {{ text }} ({{ links | join(', ') }})
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
- {{ sections[section][category]['']|join(', ') }}
|
||||
|
|
Loading…
Reference in a new issue