knowledge-search

git clone git://archive.git.mtrnord.blog/MTRNord/knowledge-search.git
Log | Files | Refs | README | LICENSE

commit c9a97cd6632d2207a83272c32e6713d3cfeedc9f
parent cd51af0cbe8e919bf2efcdc1a1abe311c6c5e0c0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 23 Mar 2023 19:19:58 +0100

chore(git-cliff): Add commit links to the changelog and linkify more things

Diffstat:
Mcliff.toml | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/cliff.toml b/cliff.toml @@ -18,7 +18,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\ {% endfor %} {% endfor %}\n """ @@ -38,7 +38,9 @@ filter_unconventional = true split_commits = false # regex for preprocessing the commit messages commit_preprocessors = [ - { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/MTRNord/knowledge-search/issues/${2}))"}, # replace issue numbers + { pattern = "Merge pull request #([0-9]+) from [^ ]+", replace = "PR # [${1}](https://github.com/MTRNord/knowledge-search/pull/${1}):"}, # Linkify Merge requests + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([Issue #${2}](https://github.com/MTRNord/knowledge-search/issues/${2}))"}, # replace issue numbers + { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://github.com/MTRNord/knowledge-search/commit/${2})"}, # Linkify commits ] # regex for parsing and grouping commits commit_parsers = [ @@ -60,7 +62,7 @@ filter_commits = false # glob pattern for matching git tags tag_pattern = "v[0-9]*" # regex for skipping tags -skip_tags = "v0.1.0-beta.1" +skip_tags = "" # regex for ignoring tags ignore_tags = "" # sort the tags topologically