Skip to content

Commit

Permalink
Merge latest changelog template from towncrier to facilitate orphan f…
Browse files Browse the repository at this point in the history
…ragments
  • Loading branch information
blakeNaccarato committed May 3, 2024
1 parent 74559c2 commit 8766635
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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](<https://github.com/blakeNaccarato/boilercv/security/advisories/new>) or email Blake Naccarato, Kwang Jin Kim at <blake.naccarato@gmail.com>.
If you think you have found a vulnerability, please use [GitHub's security advisory form](<https://github.com/blakeNaccarato/boilercv/security/advisories/new>) or email Blake Naccarato at <blake.naccarato@gmail.com>.
File renamed without changes.
File renamed without changes.
File renamed without changes.
51 changes: 48 additions & 3 deletions changelog/towncrier_template.md.jinja
Original file line number Diff line number Diff line change
@@ -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 +%}

0 comments on commit 8766635

Please sign in to comment.