-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathcliff.toml
More file actions
71 lines (65 loc) · 2.46 KB
/
Copy pathcliff.toml
File metadata and controls
71 lines (65 loc) · 2.46 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
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
This changelog is automatically generated based on [Conventional Commits](https://www.conventionalcommits.org/).\n
"""
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{% if version -%}
## [{{ version | trim_start_matches(pat="v") }}]\
{% if commit_id %}({{ self::remote_url() }}/tree/{{ version }}){% endif %}\
{% if timestamp %} - {{ timestamp | date(format="%Y-%m-%d") }}{% endif %}
{% else -%}
## [Unreleased]
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- *({{ commit.scope }})* {{ commit.message | upper_first }}\
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
{% if commit.github.pr_number %} in \
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }})\
{%- endif %}
{%- endfor -%}
{% for commit in commits %}
{%- if not commit.scope %}
- {{ commit.message | upper_first }}\
{% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%}
{% if commit.github.pr_number %} in \
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }})\
{%- endif %}
{%- endif -%}
{%- endfor -%}
{% endfor %}
"""
footer = ""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->⚡ Performance" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^example", group = "<!-- 4 -->📦 Examples" },
{ message = "^refactor", group = "<!-- 5 -->🔧 Refactoring" },
{ message = "^chore\\(deps\\)", group = "<!-- 6 -->📦 Dependencies" },
{ message = "^chore|^ci", group = "<!-- 7 -->🏗️ Maintenance" },
{ message = "^test", group = "<!-- 8 -->🧪 Testing" },
{ message = "^Bump ", group = "<!-- 6 -->📦 Dependencies" },
{ message = "^.*", group = "<!-- 9 -->🔀 Other" },
]
protect_breaking_commits = true
filter_commits = false
tag_pattern = "v[0-9].*"
sort_commits = "newest"
[remote.github]
owner = "aws"
repo = "aws-lambda-web-adapter"