Skip to content

Commit 0159fe6

Browse files
committed
chore: add git-cliff changelog generation
1 parent a913dff commit 0159fe6

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [unreleased]
6+
7+
### <!-- 0 -->🚀 Features
8+
9+
- Add blog auto-sync workflow + Currently Using badges
10+
- Steipete-style profile README with DigitalForce matrix
11+
12+
### <!-- 1 -->🐛 Bug Fixes
13+
14+
- Use default template, reset blog markers
15+
- Add actions/checkout step to blog-post-workflow
16+
17+
### <!-- 10 -->📦 Miscellaneous
18+
19+
- Pin third-party actions to commit SHAs
20+
21+
### <!-- 7 -->🏗️ Chores
22+
23+
- Gitignore finalize-profile.sh helper
24+
- Sync latest pulseagent.io blog posts
25+
- Sync latest pulseagent.io blog posts
26+
27+

cliff.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# git-cliff configuration
2+
# https://git-cliff.org/docs/configuration
3+
4+
[changelog]
5+
header = """
6+
# Changelog\n
7+
All notable changes to this project will be documented in this file.\n
8+
"""
9+
body = """
10+
{% if version %}\
11+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
12+
{% else %}\
13+
## [unreleased]
14+
{% endif %}\
15+
{% for group, commits in commits | group_by(attribute="group") %}
16+
### {{ group | upper_first }}
17+
{% for commit in commits %}
18+
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}\
19+
{{ commit.message | upper_first }}\
20+
{% if commit.breaking %} ⚠️ BREAKING{% endif %}\
21+
{% endfor %}
22+
{% endfor %}\n
23+
"""
24+
footer = ""
25+
trim = true
26+
27+
[git]
28+
conventional_commits = true
29+
filter_unconventional = false
30+
split_commits = false
31+
protect_breaking_commits = false
32+
filter_commits = false
33+
tag_pattern = "v[0-9]*"
34+
skip_tags = "beta|alpha|rc"
35+
ignore_tags = ""
36+
topo_order = false
37+
sort_commits = "newest"
38+
39+
commit_parsers = [
40+
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
41+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
42+
{ message = "^perf", group = "<!-- 2 -->⚡ Performance" },
43+
{ message = "^refactor", group = "<!-- 3 -->🔧 Refactoring" },
44+
{ message = "^docs", group = "<!-- 4 -->📝 Documentation" },
45+
{ message = "^test", group = "<!-- 5 -->✅ Testing" },
46+
{ message = "^style", group = "<!-- 6 -->🎨 Styling" },
47+
{ message = "^chore", group = "<!-- 7 -->🏗️ Chores" },
48+
{ message = "^ci", group = "<!-- 8 -->🔄 CI/CD" },
49+
{ message = "^revert", group = "<!-- 9 -->⏪ Revert" },
50+
{ message = ".*", group = "<!-- 10 -->📦 Miscellaneous" },
51+
]

0 commit comments

Comments
 (0)