-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathcliff.toml
More file actions
49 lines (41 loc) · 1.77 KB
/
Copy pathcliff.toml
File metadata and controls
49 lines (41 loc) · 1.77 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
[changelog]
header = """
# Changelog
All notable changes to the Security Frameworks are documented here.
"""
body = """
{% macro remote_url() %}https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}{% endmacro %}
{% if version %}
## {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}
## Unreleased
{% endif %}
{% for group, commits in commits | filter(attribute="merge_commit", value=false) | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
{%- if commit.remote.pr_title -%}
{%- set entry = commit.remote.pr_title -%}
{%- else -%}
{%- set entry = commit.message | split(pat="\n") | first -%}
{%- endif %}
- {{ entry | trim }}{% if commit.remote.pr_number %} ([#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})){% endif %}{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}
{%- endfor %}
{% endfor %}
"""
trim = true
[git]
conventional_commits = false
filter_unconventional = false
filter_commits = false
sort_commits = "oldest"
commit_parsers = [
{ message = "^Merge pull request", skip = true },
{ message = "^Merge branch", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ field = "github.pr_labels", pattern = "dependencies", skip = true },
{ field = "github.pr_labels", pattern = "content:add", group = "<!-- 0 --> New content" },
{ field = "github.pr_labels", pattern = "content:update", group = "<!-- 1 --> Updated content" },
{ field = "github.pr_labels", pattern = "enhancement", group = "<!-- 2 --> Enhancements" },
{ field = "github.pr_labels", pattern = "certifications", group = "<!-- 3 --> Certifications" },
{ message = ".*", group = "<!-- 9 --> Other" },
]