| 1 | # Release notes for GitHub releases, built by git-cliff from conventional commits |
| 2 | # (build.yml, release job). Commit and PR titles are the lines users read. |
| 3 | [changelog] |
| 4 | body = """ |
| 5 | {% for group, commits in commits | group_by(attribute="group") %} |
| 6 | ### {{ group | striptags | trim }} |
| 7 | {% for commit in commits | unique(attribute="message") | sort(attribute="scope") %} |
| 8 | - {% if commit.scope %}**{{ commit.scope | replace(from="-", to=" ") | upper_first }}:** {% endif %}{{ commit.message | split(pat="\n") | first | trim | upper_first }}\ |
| 9 | {% if commit.remote.pr_number %} ([#{{ commit.remote.pr_number }}](https://github.com/danieldaeschle/rusty-teams/pull/{{ commit.remote.pr_number }}){% if commit.remote.username and commit.remote.username != "danieldaeschle" %} by @{{ commit.remote.username }}{% endif %}){% endif %} |
| 10 | {%- endfor %} |
| 11 | {% endfor %} |
| 12 | {% if previous.version %} |
| 13 | **Full changelog**: https://github.com/danieldaeschle/rusty-teams/compare/{{ previous.version }}...{{ version }} |
| 14 | {% endif %} |
| 15 | """ |
| 16 | trim = true |
| 17 | |
| 18 | [git] |
| 19 | conventional_commits = true |
| 20 | filter_unconventional = true |
| 21 | tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+(-rc\\.[0-9]+)?$" |
| 22 | sort_commits = "oldest" |
| 23 | commit_preprocessors = [ |
| 24 | { pattern = "^Merge pull request #[0-9]+:? (from \\S+\\s*)?", replace = "" }, |
| 25 | { pattern = "^[^a-zA-Z]+", replace = "" }, |
| 26 | { pattern = "^([^\\n]*?) \\(#[0-9]+\\)", replace = "${1}" }, |
| 27 | { pattern = "^(\\w+)(!?): ", replace = "${1}(app)${2}: " }, |
| 28 | { pattern = "^(\\w+)\\((calling|call|calls|call-e2e)\\)", replace = "${1}(calls)" }, |
| 29 | { pattern = "^(\\w+)\\((chat|chats|messages|conversation)\\)", replace = "${1}(chat)" }, |
| 30 | { pattern = "^(\\w+)\\((channel|channels)\\)", replace = "${1}(channels)" }, |
| 31 | { pattern = "^(\\w+)\\((parity|ui)\\)", replace = "${1}(app)" }, |
| 32 | { pattern = "^(\\w+)\\(ci\\)", replace = "${1}(CI)" }, |
| 33 | { pattern = "^(\\w+)\\(macos\\)", replace = "${1}(mac)" }, |
| 34 | { pattern = "^(\\w+)\\(mcp\\)", replace = "${1}(MCP)" }, |
| 35 | { pattern = "^(\\w+)\\(chatsvc\\)", replace = "${1}(chat)" }, |
| 36 | ] |
| 37 | commit_parsers = [ |
| 38 | { message = "^chore\\(release\\)", skip = true }, |
| 39 | { message = "^\\w+\\([^)]*\\): .*\\btests?\\b", skip = true }, |
| 40 | { message = "^\\w+\\(test\\)", skip = true }, |
| 41 | { message = "^\\w+\\((CI|packaging|release|flatpak|build)\\)", group = "<!-- 2 -->Packaging and releases" }, |
| 42 | { message = "^(ci|build)", group = "<!-- 2 -->Packaging and releases" }, |
| 43 | { message = "^feat", group = "<!-- 0 -->New" }, |
| 44 | { message = "^(fix|perf)", group = "<!-- 1 -->Fixes" }, |
| 45 | { message = ".*", skip = true }, |
| 46 | ] |
| 47 | |
| 48 | [remote.github] |
| 49 | owner = "danieldaeschle" |
| 50 | repo = "rusty-teams" |