Merge pull request #2620 from mihaic/multiple-issues-in-changelog

Show multiple issue links in CHANGELOG entries
This commit is contained in:
Bruno Oliveira 2017-07-26 16:00:00 -03:00 committed by GitHub
commit 1a9bc141a5
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 %}