Skip to content

Commit

Permalink
build: filter out commits with scope "internal" from changelog and re…
Browse files Browse the repository at this point in the history
…lease notes
  • Loading branch information
daniel-makerx committed Oct 9, 2024
1 parent 1da4c7f commit 813a47c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/.macros.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{%- macro render_type_commits(type_commits) -%}
{%- for type_ in ("breaking", "feature", "performance", "fix", "documentation") -%}
{%- if type_ in type_commits %}
{% set commits = type_commits[type_]|rejectattr("scope", "eq", "internal")|list -%}
{%- if commits|length > 0 %}
### {{ type_ | capitalize }}
{% for commit in type_commits[type_] %}
{% for commit in commits %}
* {{ commit["descriptions"][0] }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% set ns = namespace(skip_line=false) -%}
{%- for line in commit["descriptions"][1:] -%}
Expand Down

0 comments on commit 813a47c

Please sign in to comment.