From 8766635fa4c940977cf6d570759328ac7458289a Mon Sep 17 00:00:00 2001 From: blakeNaccarato Date: Fri, 3 May 2024 11:32:36 -0700 Subject: [PATCH] Merge latest changelog template from towncrier to facilitate orphan fragments --- .github/SECURITY.md | 2 +- .../{+42f300e2.change => +42f300e2.change.md} | 0 .../{+5c6a0a7a.change => +5c6a0a7a.change.md} | 0 .../{+8e6b8716.change => +8e6b8716.change.md} | 0 changelog/towncrier_template.md.jinja | 51 +++++++++++++++++-- 5 files changed, 49 insertions(+), 4 deletions(-) rename changelog/{+42f300e2.change => +42f300e2.change.md} (100%) rename changelog/{+5c6a0a7a.change => +5c6a0a7a.change.md} (100%) rename changelog/{+8e6b8716.change => +8e6b8716.change.md} (100%) diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 03ff7934..b23db535 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -6,4 +6,4 @@ We only support the latest version, but we try to show `DeprecationWarning`s for ## Reporting a Vulnerability -If you think you have found a vulnerability, please use [GitHub's security advisory form]() or email Blake Naccarato, Kwang Jin Kim at . +If you think you have found a vulnerability, please use [GitHub's security advisory form]() or email Blake Naccarato at . diff --git a/changelog/+42f300e2.change b/changelog/+42f300e2.change.md similarity index 100% rename from changelog/+42f300e2.change rename to changelog/+42f300e2.change.md diff --git a/changelog/+5c6a0a7a.change b/changelog/+5c6a0a7a.change.md similarity index 100% rename from changelog/+5c6a0a7a.change rename to changelog/+5c6a0a7a.change.md diff --git a/changelog/+8e6b8716.change b/changelog/+8e6b8716.change.md similarity index 100% rename from changelog/+8e6b8716.change rename to changelog/+8e6b8716.change.md diff --git a/changelog/towncrier_template.md.jinja b/changelog/towncrier_template.md.jinja index 8e4a5096..0c828c57 100644 --- a/changelog/towncrier_template.md.jinja +++ b/changelog/towncrier_template.md.jinja @@ -1,18 +1,63 @@ -{# Built documentation only #}{%- if versiondata["version"] == "main" -%} +{% if render_title %}{# Built documentation only #}{%- if versiondata["version"] == "main" -%} ## Unreleased :::{warning} These changes reflect the current [development progress](https://github.com/blakeNaccarato/boilercv/tree/main) and have **not** been part of a PyPI release yet. ::: {# CHANGELOG.md entries #}{% else -%} -## [{{ versiondata["version"] }}](https://github.com/blakeNaccarato/boilercv/tree/{{ versiondata["version"] }}){% endif %} +## [{{ versiondata["version"] }}](https://github.com/blakeNaccarato/boilercv/tree/{{ versiondata["version"] }}) +{% endif %} +{% endif %} {% for section, _ in sections.items() %} +{% if section %} +## {{section}} +{% endif %} + +{% if sections[section] %} {% for category, val in definitions.items() if category in sections[section] %} ### {{ definitions[category]['name'] }} +{% if definitions[category]['showcontent'] %} {% for text, values in sections[section][category].items() %} -- {{ text }} ({{ values|join(', ') }}) +- {{ text }} +{%- if values %} +{% if "\n - " in text or '\n * ' in text %} + + + ( +{%- else %} + ( +{%- endif -%} +{%- for issue in values %} +{{ issue.split(": ", 1)[0] }}{% if not loop.last %}, {% endif %} +{%- endfor %} +) +{% else %} + +{% endif %} +{% endfor %} +{% else %} +- {% for issue in sections[section][category][''] %} +{{ issue.split(": ", 1)[0] }}{% if not loop.last %}, {% endif %} {% endfor %} + + +{% endif %} +{% if issues_by_category[section][category] and "]: " in issues_by_category[section][category][0] %} +{% for issue in issues_by_category[section][category] %} +{{ issue }} {% endfor %} + +{% endif %} +{% if sections[section][category]|length == 0 %} +No significant changes. + +{% else %} +{% endif %} {% endfor %} +{% else %} +No significant changes. + +{% endif %} +{% endfor +%}