Compare commits

..

No commits in common. "645934761023e6b349efa755fd47da862ede2204" and "b4d08120cedc6e71c9f372196124ae17b68fd599" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View File

@ -15,9 +15,7 @@ steps:
- name: release
image: rust
commands:
- cargo install -f git-cliff
- git-cliff --output CHANGELOG.md
- cargo publish --allow-dirty
- cargo publish
when:
event:
- tag

View File

@ -14,4 +14,5 @@ rand = "0.8"
[package.metadata.release]
tag-prefix = ""
publish = false
publish = false
pre-release-hook = ["git cliff --tag {{tag_name}} --output CHANGELOG.md", "git add CHANGELOG.md", "git commit CHANGELOG.md -m 'Update changelog for release.'"]

View File

@ -10,9 +10,9 @@ All notable changes to this project will be documented in this file.\n
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## Version {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## Unreleased
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}