mirror of
https://github.com/orhun/git-cliff.git
synced 2024-11-29 17:23:22 +03:00
style(config): update the formatting
Signed-off-by: orhun <orhunparmaksiz@gmail.com>
This commit is contained in:
parent
0e4d560761
commit
494f0f400e
@ -2,6 +2,7 @@
|
||||
# changelog header
|
||||
header = """
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
@ -11,16 +12,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
# template for the changelog body
|
||||
# https://tera.netlify.app/docs/#introduction
|
||||
body = """
|
||||
## {% if version %}[{{ version }}] - {{ timestamp | date(format="%Y-%m-%d") }}{% else %}[unreleased]{% endif %}
|
||||
{% if version %}\
|
||||
## [{{ version | replace(from="v", to="") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||
{% else %}
|
||||
## [unreleased]
|
||||
{% endif %}\
|
||||
{% for group, commits in commits | group_by(attribute="group") %}
|
||||
### {{ group | capitalize}}
|
||||
{% for commit in commits %}
|
||||
- {{ commit.message }}{% endfor %}
|
||||
- {{ commit.message }}\
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
"""
|
||||
|
||||
# changelog footer
|
||||
footer = ""
|
||||
footer = """
|
||||
<!-- generated by gitolith -->
|
||||
"""
|
||||
|
||||
# regex patterns for grouping commits
|
||||
group_parsers = [
|
||||
|
Loading…
Reference in New Issue
Block a user