-
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.
ci: update config for python_semantic_release
- Loading branch information
Showing
4 changed files
with
5 additions
and
38 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,23 +1,7 @@ | ||
{# | ||
This is a Jinja template for generating release notes with Python Semantic Release. | ||
Ref: https://python-semantic-release.readthedocs.io/en/latest/changelog_templates.html | ||
#} | ||
|
||
## What's Changed | ||
{% for type_, commits in release["elements"] | dictsort %} | ||
### {{ type_ | capitalize }} | ||
{%- if type_ != "unknown" %} | ||
{% for commit in commits %} | ||
* {{ commit.descriptions[0] }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{%- endfor %}{% endif %}{% endfor %} | ||
|
||
{% from ".macros.j2" import version_compare_url %} | ||
{% from ".macros.j2" import changelog_file_url %} | ||
|
||
{% set releases = context.history.released.items() | list %} | ||
{% set prev_version = releases[1][0] %} | ||
{% set full_changelog_url = version_compare_url(prev_version, version) %} | ||
|
||
**Full changes**: {{ full_changelog_url }} | ||
|
||
**All changelog**: [CHANGELOG.md]({{ changelog_file_url() }}) |
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