Repository navigation
Expand file tree
/
Copy pathcliff.toml
More file actions
73 lines (67 loc) · 2.97 KB
/
Copy pathcliff.toml
File metadata and controls
73 lines (67 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# git-cliff configuration — https://git-cliff.org/docs/configuration
# The changelog is generated from Conventional Commit messages. Never edited by hand.
[changelog]
header = """
# Changelog
All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
body = """
{% if version -%}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else -%}
## [Unreleased]
{% endif -%}
{% set breaking = commits | filter(attribute="breaking", value=true) -%}
{% if breaking | length > 0 %}
### 💥 Breaking Changes
{% for commit in breaking %}
- {{ commit.breaking_description | default(value=commit.message) | split(pat="\n") | first | upper_first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/InceptionCode/organic-the-label/commit/{{ commit.id }}))
{%- endfor %}
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/InceptionCode/organic-the-label/commit/{{ commit.id }})){% if commit.remote.pr_number %} in [#{{ commit.remote.pr_number }}](https://github.com/InceptionCode/organic-the-label/pull/{{ commit.remote.pr_number }}){% endif %}
{%- endfor %}
{% endfor %}
"""
footer = ""
trim = true
postprocessors = []
[git]
conventional_commits = true
filter_unconventional = true
require_conventional = false
split_commits = false
protect_breaking_commits = true
filter_commits = false
# Anchored: only storefront release tags (vX.Y.Z). Package tags such as
# content-schema-v0.1.0 must not count as releases (see docs/release-process.md).
tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
topo_order = false
sort_commits = "newest"
commit_parsers = [
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(changelog\\)", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 3 -->🚜 Refactor" },
{ message = "^docs", group = "<!-- 4 -->📚 Documentation" },
{ message = "^test", group = "<!-- 5 -->🧪 Testing" },
{ message = "^ci", group = "<!-- 6 -->⚙️ CI & Build" },
{ message = "^build", group = "<!-- 6 -->⚙️ CI & Build" },
{ message = "^style", group = "<!-- 7 -->🎨 Styling" },
{ message = "^chore", group = "<!-- 8 -->🧹 Chores" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
[bump]
features_always_bump_minor = true
breaking_always_bump_major = true
initial_tag = "v1.6.0"
[remote.github]
owner = "InceptionCode"
repo = "organic-the-label"