@@ -5,13 +5,16 @@ header = """
5
5
All notable changes to this project will be documented in this file.\n
6
6
"""
7
7
body = """
8
+ {%- macro remote_url() -%}
9
+ https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
10
+ {%- endmacro -%}
8
11
{% if version %}\
9
12
# [{{ version | trim_start_matches(pat="v") }}]\
10
13
{% if previous %}\
11
14
{% if previous.version %}\
12
- (https://github.com/sapphiredev/cli /compare/{{ previous.version }}...{{ version }})\
15
+ ({{ self::remote_url() }} /compare/{{ previous.version }}...{{ version }})\
13
16
{% else %}\
14
- (https://github.com/sapphiredev/cli /tree/{{ version }})\
17
+ ({{ self::remote_url() }} /tree/{{ version }})\
15
18
{% endif %}\
16
19
{% endif %} \
17
20
- ({{ timestamp | date(format="%Y-%m-%d") }})
@@ -24,7 +27,10 @@ body = """
24
27
- {% if commit.scope %}\
25
28
**{{commit.scope}}:** \
26
29
{% endif %}\
27
- {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/sapphiredev/cli/commit/{{ commit.id }}))\
30
+ {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
31
+ {% if commit.github.pr_number %} (\
32
+ [#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) by @{{ commit.github.username }}) \
33
+ {%- endif %}\
28
34
{% if commit.breaking %}\
29
35
{% for breakingChange in commit.footers %}\
30
36
\n {% raw %} {% endraw %}- 💥 **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\
@@ -40,24 +46,32 @@ footer = ""
40
46
conventional_commits = true
41
47
filter_unconventional = true
42
48
commit_parsers = [
43
- { message = " ^feat" , group = " 🚀 Features" },
44
- { message = " ^fix" , group = " 🐛 Bug Fixes" },
45
- { message = " ^docs" , group = " 📝 Documentation" },
46
- { message = " ^perf" , group = " 🏃 Performance" },
47
- { message = " ^refactor" , group = " 🏠 Refactor" },
48
- { message = " ^typings" , group = " ⌨️ Typings" },
49
- { message = " ^types" , group = " ⌨️ Typings" },
50
- { message = " .*deprecated" , body = " .*deprecated" , group = " 🚨 Deprecation" },
51
- { message = " ^revert" , skip = true },
52
- { message = " ^style" , group = " 🪞 Styling" },
53
- { message = " ^test" , group = " 🧪 Testing" },
54
- { message = " ^chore" , skip = true },
55
- { message = " ^ci" , skip = true },
56
- { message = " ^build" , skip = true },
57
- { body = " .*security" , group = " 🛡️ Security" },
49
+ { message = " ^feat" , group = " 🚀 Features" },
50
+ { message = " ^fix" , group = " 🐛 Bug Fixes" },
51
+ { message = " ^docs" , group = " 📝 Documentation" },
52
+ { message = " ^perf" , group = " 🏃 Performance" },
53
+ { message = " ^refactor" , group = " 🏠 Refactor" },
54
+ { message = " ^typings" , group = " ⌨️ Typings" },
55
+ { message = " ^types" , group = " ⌨️ Typings" },
56
+ { message = " .*deprecated" , body = " .*deprecated" , group = " 🚨 Deprecation" },
57
+ { message = " ^revert" , skip = true },
58
+ { message = " ^style" , group = " 🪞 Styling" },
59
+ { message = " ^test" , group = " 🧪 Testing" },
60
+ { message = " ^chore" , skip = true },
61
+ { message = " ^ci" , skip = true },
62
+ { message = " ^build" , skip = true },
63
+ { body = " .*security" , group = " 🛡️ Security" },
64
+ ]
65
+ commit_preprocessors = [
66
+ # remove issue numbers from commits
67
+ { pattern = ' \s\((\w+\s)?#([0-9]+)\)' , replace = " " },
58
68
]
59
69
filter_commits = true
60
70
tag_pattern = " v[0-9]*"
61
71
ignore_tags = " "
62
72
topo_order = false
63
73
sort_commits = " newest"
74
+
75
+ [remote .github ]
76
+ owner = " sapphiredev"
77
+ repo = " cli"
0 commit comments