Skip to content

Commit f945663

Browse files
authored
chore: modify changelog format (#26)
* chore: modify changelog format * chore: fix template
1 parent f491e0d commit f945663

File tree

2 files changed

+39
-23
lines changed

2 files changed

+39
-23
lines changed

CHANGELOG.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,66 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9-
- Add github action (#15) - ([05431f6](https://github.com/beeb/awsbck/commit/05431f6ca93fa59333a927a7ccb0dc6aeb5ccb4a))
10-
- Add tests (#21) - ([bf7e4fc](https://github.com/beeb/awsbck/commit/bf7e4fc15eff6ca32ea007fde5a0e85351b38d9f))
9+
- Add github action (#15) - ([05431f6](https://github.com/beeb/lintspec/commit/05431f6ca93fa59333a927a7ccb0dc6aeb5ccb4a))
10+
- Add tests (#21) - ([bf7e4fc](https://github.com/beeb/lintspec/commit/bf7e4fc15eff6ca32ea007fde5a0e85351b38d9f))
1111

1212
### Fixed
1313

14-
- Parent ignore files must be enabled (#17) - ([6d9663e](https://github.com/beeb/awsbck/commit/6d9663e68d00a4cbe3a734e71e87a8f140613e90))
15-
- Return comment should not include return name (#19) - ([8be4150](https://github.com/beeb/awsbck/commit/8be4150d45039a7eda95f135ee4d34eb73bbe0a9))
16-
- Process functions without returns (#20) - ([7fdfbda](https://github.com/beeb/awsbck/commit/7fdfbda4856eeb94ac29cca9cb4cd6b2332842d5))
14+
- Parent ignore files must be enabled (#17) - ([6d9663e](https://github.com/beeb/lintspec/commit/6d9663e68d00a4cbe3a734e71e87a8f140613e90))
15+
- Return comment should not include return name (#19) - ([8be4150](https://github.com/beeb/lintspec/commit/8be4150d45039a7eda95f135ee4d34eb73bbe0a9))
16+
- Process functions without returns (#20) - ([7fdfbda](https://github.com/beeb/lintspec/commit/7fdfbda4856eeb94ac29cca9cb4cd6b2332842d5))
1717

1818
## [0.1.5] - 2025-02-20
1919

2020
### Fixed
2121

22-
- Output a line return after json output (#12) - ([89f616f](https://github.com/beeb/awsbck/commit/89f616ff029229ecc49a89ea443e0dfe9bdebcb7))
23-
- Merging of config from CLI and config file (#14) - ([bbef59a](https://github.com/beeb/awsbck/commit/bbef59ad3d68031d0258dca8ad47d11edc9c229d))
22+
- Output a line return after json output (#12) - ([89f616f](https://github.com/beeb/lintspec/commit/89f616ff029229ecc49a89ea443e0dfe9bdebcb7))
23+
- Merging of config from CLI and config file (#14) - ([bbef59a](https://github.com/beeb/lintspec/commit/bbef59ad3d68031d0258dca8ad47d11edc9c229d))
2424

2525
## [0.1.4] - 2025-02-20
2626

2727
### Documentation
2828

29-
- Fix help text (#9) - ([6f3025e](https://github.com/beeb/awsbck/commit/6f3025e95fc2f377ac5a7d66f157584ac9040125))
30-
- Update readme (#11) - ([a123795](https://github.com/beeb/awsbck/commit/a12379584155c2822168962d7f64ed7af8f03048))
29+
- Fix help text (#9) - ([6f3025e](https://github.com/beeb/lintspec/commit/6f3025e95fc2f377ac5a7d66f157584ac9040125))
30+
- Update readme (#11) - ([a123795](https://github.com/beeb/lintspec/commit/a12379584155c2822168962d7f64ed7af8f03048))
3131

3232
## [0.1.3] - 2025-02-20
3333

3434
### Added
3535

36-
- Add icon to title (#6) - ([0c0f300](https://github.com/beeb/awsbck/commit/0c0f300b717771832e6d41ae0c9a1149e70b54cb))
37-
- Add cargo-dist (#7) - ([fe9a65e](https://github.com/beeb/awsbck/commit/fe9a65e81b37a5b50ec8c2db2cc1dbac4b03d5e3))
36+
- Add icon to title (#6) - ([0c0f300](https://github.com/beeb/lintspec/commit/0c0f300b717771832e6d41ae0c9a1149e70b54cb))
37+
- Add cargo-dist (#7) - ([fe9a65e](https://github.com/beeb/lintspec/commit/fe9a65e81b37a5b50ec8c2db2cc1dbac4b03d5e3))
3838

3939
### Changed
4040

41-
- Change phrasing - ([71aa36e](https://github.com/beeb/awsbck/commit/71aa36e0421c5d83380ca41d1fe99857244e8c91))
41+
- Change phrasing - ([71aa36e](https://github.com/beeb/lintspec/commit/71aa36e0421c5d83380ca41d1fe99857244e8c91))
4242

4343
### Fixed
4444

45-
- Highlighted span (#8) - ([e53840f](https://github.com/beeb/awsbck/commit/e53840f7614e018569dfc8be18701b9000709d82))
45+
- Highlighted span (#8) - ([e53840f](https://github.com/beeb/lintspec/commit/e53840f7614e018569dfc8be18701b9000709d82))
4646

4747
## [0.1.2] - 2025-02-19
4848

4949
### Added
5050

51-
- Add badges - ([ea6b8a6](https://github.com/beeb/awsbck/commit/ea6b8a61514466ab34ec0343d97d3b20da35da45))
51+
- Add badges - ([ea6b8a6](https://github.com/beeb/lintspec/commit/ea6b8a61514466ab34ec0343d97d3b20da35da45))
5252

5353
### Changed
5454

55-
- Update benchmark with comparable output format - ([1b0bc92](https://github.com/beeb/awsbck/commit/1b0bc9291b866921bba35778fd8466459146cef8))
55+
- Update benchmark with comparable output format - ([1b0bc92](https://github.com/beeb/lintspec/commit/1b0bc9291b866921bba35778fd8466459146cef8))
5656

5757
### Fixed
5858

59-
- Parsing of the `--out` CLI arg (#3) - ([b0de154](https://github.com/beeb/awsbck/commit/b0de154ed7fca881c737f54d20c80617fff5a9cd))
60-
- Fix links - ([95d8585](https://github.com/beeb/awsbck/commit/95d85857f729c11ce68740754d6144823ed152e7))
59+
- Parsing of the `--out` CLI arg (#3) - ([b0de154](https://github.com/beeb/lintspec/commit/b0de154ed7fca881c737f54d20c80617fff5a9cd))
60+
- Fix links - ([95d8585](https://github.com/beeb/lintspec/commit/95d85857f729c11ce68740754d6144823ed152e7))
6161

6262
## [0.1.1] - 2025-02-19
6363

6464
### Added
6565

66-
- Add workflows (#1) - ([e06b444](https://github.com/beeb/awsbck/commit/e06b4449649758565bc6cc5a064fb2117cf96dc1))
66+
- Add workflows (#1) - ([e06b444](https://github.com/beeb/lintspec/commit/e06b4449649758565bc6cc5a064fb2117cf96dc1))
6767

6868
### Changed
6969

70-
- Update readme - ([2369db0](https://github.com/beeb/awsbck/commit/2369db044f00813db0685f4e1b38253d87df6c3d))
70+
- Update readme - ([2369db0](https://github.com/beeb/lintspec/commit/2369db044f00813db0685f4e1b38253d87df6c3d))
7171

cliff.toml

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[changelog]
22
header = """
33
# Changelog\n
4-
All notable changes to this project will be documented in this file.\n
4+
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.\n
55
"""
66

77
body = """
@@ -10,10 +10,26 @@ body = """
1010
{% endif %}\
1111
{% for group, commits in commits | group_by(attribute="group") %}
1212
### {{ group | upper_first }}
13-
{% for commit in commits %}
14-
- {{ commit.message | upper_first }} - ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/beeb/awsbck/commit/{{ commit.id }}))\
13+
{% for commit in commits | filter(attribute="scope") | sort(attribute="scope") %}
14+
- **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \
15+
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }}))
1516
{% endfor %}
17+
{% raw %}\n{% endraw %}\
18+
{%- for commit in commits %}
19+
{%- if commit.scope -%}
20+
{% else -%}
21+
- {% if commit.breaking %} [**breaking**]{% endif %}\
22+
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }}))
23+
{% endif -%}
24+
{% endfor -%}
1625
{% endfor %}\n
26+
{% if version %}
27+
{% if previous.version %}
28+
**Full Changelog**: $REPO/compare/{{ previous.version }}...{{ version }}
29+
{% endif %}
30+
{% else -%}
31+
{% raw %}\n{% endraw %}
32+
{% endif %}
1733
"""
1834

1935
# remove the leading and trailing whitespace from the template
@@ -43,7 +59,7 @@ commit_parsers = [
4359
] # regex for parsing and grouping commits
4460

4561
# protect breaking changes from being skipped due to matching a skipping commit_parser
46-
protect_breaking_commits = false
62+
protect_breaking_commits = true
4763
# filter out the commits that are not matched by commit parsers
4864
filter_commits = false
4965
# glob pattern for matching git tags

0 commit comments

Comments
 (0)