|
| 1 | +[changelog] |
| 2 | +header = """ |
| 3 | +# Changelog |
| 4 | +
|
| 5 | +All notable changes to this project will be documented in this file. |
| 6 | +
|
| 7 | +""" |
| 8 | +body = """ |
| 9 | +{% if version %}\ |
| 10 | + # [{{ version | trim_start_matches(pat="v") }}]\ |
| 11 | + {% if previous %}\ |
| 12 | + {% if previous.version %}\ |
| 13 | + (https://github.com/josh-development/utilities/compare/{{ previous.version }}...{{ version }})\ |
| 14 | + {% else %}\ |
| 15 | + (https://github.com/josh-development/utilities/tree/{{ version }})\ |
| 16 | + {% endif %}\ |
| 17 | + {% endif %} \ |
| 18 | + - ({{ timestamp | date(format="%Y-%m-%d") }}) |
| 19 | +{% else %}\ |
| 20 | + # [unreleased] |
| 21 | +{% endif %}\ |
| 22 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 23 | + ## {{ group | upper_first }} |
| 24 | + {% for commit in commits %} |
| 25 | + - {% if commit.scope %}\ |
| 26 | + **{{commit.scope}}:** \ |
| 27 | + {% endif %}\ |
| 28 | + {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/josh-development/utilities/commit/{{ commit.id }}))\ |
| 29 | + {% if commit.breaking %}\ |
| 30 | + |
| 31 | +
|
| 32 | + {% raw %} {% endraw %} ### 💥 Breaking Changes: |
| 33 | + \ |
| 34 | + {% for breakingChange in commit.footers %}\ |
| 35 | + {% raw %} {% endraw %} - {{ breakingChange }} |
| 36 | +\ |
| 37 | + {% endfor %}\ |
| 38 | + {% endif %}\ |
| 39 | + {% endfor %} |
| 40 | +{% endfor %} |
| 41 | +
|
| 42 | +""" |
| 43 | +trim = true |
| 44 | +footer = "" |
| 45 | + |
| 46 | +[git] |
| 47 | +conventional_commits = true |
| 48 | +filter_unconventional = true |
| 49 | +commit_parsers = [ |
| 50 | + { message = "^feat", group = "🚀 Features" }, |
| 51 | + { message = "^fix", group = "🐛 Bug Fixes" }, |
| 52 | + { message = "^docs", group = "📝 Documentation" }, |
| 53 | + { message = "^perf", group = "🏃 Performance" }, |
| 54 | + { message = "^refactor", group = "🏠 Refactor" }, |
| 55 | + { message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation" }, |
| 56 | + { message = "^revert", skip = true }, |
| 57 | + { message = "^style", group = "🪞 Styling" }, |
| 58 | + { message = "^test", group = "🧪 Testing" }, |
| 59 | + { message = "^chore", skip = true }, |
| 60 | + { message = "^ci", skip = true }, |
| 61 | + { body = ".*security", group = "🛡️ Security" }, |
| 62 | +] |
| 63 | +filter_commits = true |
| 64 | +tag_pattern = "@joshdb/indexeddb@[0-9]*" |
| 65 | +ignore_tags = "" |
| 66 | +topo_order = false |
| 67 | +sort_commits = "newest" |
0 commit comments