Skip to content

Commit

Permalink
🚸 hide pre-1.0.0 commits from CHANGELOG
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jul 3, 2024
1 parent 7274fa9 commit 736bfbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/CHANGELOG.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@

{#- RELEASED -#}
{% for version, release in context.history.released.items() %}
{%- set v = namespace() %}
{%- set _v = version.as_tag()|split('.') %}
{%- set v.major = _v[0] %}
{%- set v.minor = _v[1] %}
{%- if v.major|int < 1 %}
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
{% for type_, commits in release["elements"] | dictsort %}
{% include '.parsed_commit_heading.j2' %}
Expand Down Expand Up @@ -310,4 +315,4 @@
{% else %}
* {{ commit.commit.message.rstrip()|replace(type_~': ','')|replace(type_,'')|replace('---', '')|replace('\n\nSigned-off-by:', ' —') }}
([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }}))
{% endif %}{% endfor %}{% endfor %}{% endfor %}
{% endif %}{% endfor %}{% endfor %}{% endif %}{% endfor %}

0 comments on commit 736bfbe

Please sign in to comment.