-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add templates for changelog and release notes
Signed-off-by: Sietze van Buuren <s.van.buuren@gmail.com>
- Loading branch information
1 parent
680b5a7
commit 4494fb4
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{# | ||
## vX.X.X (YYYY-MMM-DD) | ||
#}{{ | ||
|
||
"## %s (%s)\n" | format( | ||
release.version.as_semver_tag(), | ||
release.tagged_date.strftime("%Y-%m-%d") | ||
) | ||
|
||
}}{% set commit_objects = release["elements"] | dictsort | ||
%}{# | ||
#}{% for type_, commits in commit_objects | ||
%}{{ | ||
"\n### %s\n" | format(type_ | title) | ||
|
||
}}{% for commit in commits | ||
%}{{ | ||
"\n* %s ([`%s`](%s))\n" | format( | ||
commit.descriptions[0].rstrip(), | ||
commit.short_hash, | ||
commit.hexsha | commit_hash_url, | ||
) | ||
|
||
}}{% endfor | ||
%}{% endfor | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# CHANGELOG | ||
|
||
{% for version, release in ctx.history.released.items() | ||
%}{{ | ||
"## %s (%s)\n" | format(version.as_tag(), release.tagged_date.strftime("%Y-%m-%d")) | ||
|
||
}}{% set commit_objects = release["elements"] | dictsort | ||
%}{# | ||
#}{% for type_, commits in commit_objects if type_ != "unknown" | ||
%}{{ | ||
"\n### %s\n" | format(type_ | title) | ||
|
||
}}{% for commit in commits | ||
%}{{ | ||
"\n* %s ([`%s`](%s))\n" | format( | ||
commit.descriptions[0].rstrip(), | ||
commit.short_hash, | ||
commit.hexsha | commit_hash_url | ||
) | ||
|
||
}}{% endfor | ||
%}{% endfor | ||
%}{% endfor | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters