Skip to content

Commit

Permalink
style: changelog order (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious authored Dec 25, 2023
1 parent 5f036f5 commit 413b1fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
20 changes: 12 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ All notable changes to this project will be documented in this file.

## [unreleased]

### ⚙️ Miscellaneous Tasks

- Setup `CHANGELOG.md`
- Update contribution
- Dockerfile and docker compose (#5)
- CI (#6)

### ⛰️ Features
### ⛰️ Features

- Init
- Event detail feature (#2)
Expand All @@ -22,4 +15,15 @@ All notable changes to this project will be documented in this file.
- Query not using key
- Golangci-lint timeout (#7)

### 🎨 Styling

- Style cliff and changelog.md (#8)

### ⚙️ Miscellaneous Tasks

- Setup `CHANGELOG.md`
- Update contribution
- Dockerfile and docker compose (#5)
- CI (#6)

<!-- generated by git-cliff -->
22 changes: 11 additions & 11 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ body = """
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
### {{ group | striptags | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
{% endfor %}
Expand Down Expand Up @@ -49,20 +49,20 @@ commit_preprocessors = [
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "⛰️ Features" },
{ message = "^fix", group = "🐛 Bug Fixes" },
{ message = "^doc", group = "📚 Documentation" },
{ message = "^perf", group = "⚡ Performance" },
{ message = "^refactor", group = "🚜 Refactor" },
{ message = "^style", group = "🎨 Styling" },
{ message = "^test", group = "🧪 Testing" },
{ message = "^feat", group = "<!-- 0 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|ci", group = "⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "🛡️ Security" },
{ message = "^revert", group = "◀️ Revert" },
{ message = "^chore|ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
Expand Down

0 comments on commit 413b1fb

Please sign in to comment.