Skip to content

Commit

Permalink
chore(changelog): 🧹 update template to follow MD rules
Browse files Browse the repository at this point in the history
The template now helps to generate changelog info that follow these
[Markdown Format Rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md).

Signed-off-by: Eric Villard <[email protected]>
  • Loading branch information
eviweb committed Apr 21, 2022
1 parent 2587e9e commit bac2acf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions changelog.tera
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% if version.tag and from.tag -%}
## [{{ version.tag }}]({{repository_url ~ "/compare/" ~ from.tag ~ ".." ~ version.tag}}) - {{ date | date(format="%Y-%m-%d") }}
{% elif version.tag and from.id -%}
Expand All @@ -12,9 +13,9 @@
## Unreleased ([{{ from_shorthand ~ ".." ~ to_shorthand }}]({{repository_url ~ "/compare/" ~ from_shorthand ~ ".." ~ to_shorthand}}))
{% endif -%}

{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")-%}

{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type") %}
### {{ type | upper_first }}

{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%}

{% for commit in scoped_commits | sort(attribute="scope") -%}
Expand Down

0 comments on commit bac2acf

Please sign in to comment.