Show multiple issue links in CHANGELOG entries

Restores the functionality removed in PR #2488.
This commit is contained in:
Mihai Capotă 2017-07-26 09:55:42 -07:00
parent dd294aafb3
commit 10ded399d8
3 changed files with 4 additions and 1 deletions

View File

@ -120,6 +120,7 @@ Michael Birtwell
Michael Droettboom
Michael Seifert
Michal Wajszczuk
Mihai Capotă
Mike Lundy
Ned Batchelder
Neven Mundar

1
changelog/2620.trivial Normal file
View File

@ -0,0 +1 @@
Show multiple issue links in CHANGELOG entries.

View File

@ -13,7 +13,8 @@
{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category]|dictsort(by='value') %}
- {{ text }}{% if category != 'vendor' %} (`{{ values[0] }} <https://github.com/pytest-dev/pytest/issues/{{ values[0][1:] }}>`_){% endif %}
{% set issue_joiner = joiner(', ') %}
- {{ text }}{% if category != 'vendor' %} ({% for value in values|sort %}{{ issue_joiner() }}`{{ value }} <https://github.com/pytest-dev/pytest/issues/{{ value[1:] }}>`_{% endfor %}){% endif %}
{% endfor %}