|
| 1 | +[workspace] |
| 2 | +allow_dirty = false |
| 3 | +changelog_update = true |
| 4 | +dependencies_update = false |
| 5 | +git_release_enable = false |
| 6 | +pr_labels = ["release"] |
| 7 | +publish_allow_dirty = false |
| 8 | +semver_check = true |
| 9 | +release_always = false |
| 10 | +git_release_body = """ |
| 11 | +{{ changelog }} |
| 12 | +{% if remote.contributors %} |
| 13 | +### Contributors |
| 14 | +{% for contributor in remote.contributors %} |
| 15 | +* @{{ contributor.username }} |
| 16 | +{% endfor %} |
| 17 | +{% endif %} |
| 18 | +""" |
| 19 | + |
| 20 | +[[package]] |
| 21 | +name = "appimageupdate" |
| 22 | +git_tag_name = "{{ version }}" |
| 23 | +git_release_enable = true |
| 24 | +changelog_path="./CHANGELOG.md" |
| 25 | + |
| 26 | +[changelog] |
| 27 | +header = """ |
| 28 | +""" |
| 29 | +body = """ |
| 30 | +{% macro print_commit(commit) -%} |
| 31 | + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ |
| 32 | + {% if commit.breaking %}[**breaking**] {% endif %}\ |
| 33 | + {{ commit.message | upper_first }} - \ |
| 34 | + ([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}))\ |
| 35 | +{% endmacro -%} |
| 36 | +
|
| 37 | +{% if version %}\ |
| 38 | + {% if previous.version %}\ |
| 39 | + ## [{{ version | trim_start_matches(pat="v") }}]\ |
| 40 | + ({{ release_link }}) - {{ timestamp | date(format="%Y-%m-%d") }} |
| 41 | + {% else %}\ |
| 42 | + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} |
| 43 | + {% endif %}\ |
| 44 | +{% else %}\ |
| 45 | + ## [unreleased] |
| 46 | +{% endif %}\ |
| 47 | +
|
| 48 | +{% for group, commits in commits | group_by(attribute="group") %} |
| 49 | + ### {{ group | striptags | trim | upper_first }} |
| 50 | + {% for commit in commits |
| 51 | + | filter(attribute="scope") |
| 52 | + | sort(attribute="scope") %} |
| 53 | + {{ self::print_commit(commit=commit) }} |
| 54 | + {%- endfor %} |
| 55 | + {% for commit in commits %} |
| 56 | + {%- if not commit.scope -%} |
| 57 | + {{ self::print_commit(commit=commit) }} |
| 58 | + {% endif -%} |
| 59 | + {% endfor -%} |
| 60 | +{% endfor -%} |
| 61 | +""" |
| 62 | +trim = true |
| 63 | +commit_parsers = [ |
| 64 | + { message = "^feat", group = "<!-- 0 -->⛰️ Features" }, |
| 65 | + { message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" }, |
| 66 | + { message = "^doc", group = "<!-- 3 -->📚 Documentation" }, |
| 67 | + { message = "^perf", group = "<!-- 4 -->⚡ Performance" }, |
| 68 | + { message = "^refactor\\(clippy\\)", skip = true }, |
| 69 | + { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" }, |
| 70 | + { message = "^style", group = "<!-- 5 -->🎨 Styling" }, |
| 71 | + { message = "^test", group = "<!-- 6 -->🧪 Testing" }, |
| 72 | + { message = "^chore\\(release\\)", skip = true }, |
| 73 | + { message = "^chore\\(deps.*\\)", skip = true }, |
| 74 | + { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" }, |
| 75 | + { message = "^revert", group = "<!-- 9 -->◀️ Revert" }, |
| 76 | +] |
0 commit comments