From 3fb06420f59c4c5c918886d87b0b05dbe88b869e Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Sun, 15 Sep 2024 14:41:41 +0200 Subject: [PATCH] build(cliff.toml): add a placeholder for repo URL --- cliff.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cliff.toml b/cliff.toml index 4ca0e76..939cd44 100644 --- a/cliff.toml +++ b/cliff.toml @@ -22,7 +22,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %} - - [`{{ commit.id|truncate(length=7, end="") }}`](https://github.com/pufereq/simulat/commit/{{ commit.id }}) {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message}}\ + - [`{{ commit.id|truncate(length=7, end="") }}`](/commit/{{ commit.id }}) {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message}}\ {% endfor %} {% endfor %}\n """ @@ -34,7 +34,7 @@ footer = """ """ # postprocessors postprocessors = [ - # { pattern = '', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL + { pattern = '', replace = "https://github.com/pufereq/template-repo" }, # replace repository URL ] [git] # parse the commits based on https://www.conventionalcommits.org @@ -45,7 +45,7 @@ filter_unconventional = true split_commits = false # regex for preprocessing the commit messages commit_preprocessors = [ - # { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))"}, # replace issue numbers + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))"}, # replace issue numbers ] # regex for parsing and grouping commits commit_parsers = [ @@ -56,7 +56,7 @@ commit_parsers = [ { message = "^refactor", group = "Refactor" }, { message = "^style", group = "Styling" }, { message = "^test", group = "Testing" }, - { message = "^chore\\(release\\): prepare for", skip = true }, + { message = "^chore\\(release\\)", skip = true }, { message = "^chore\\(deps\\)", skip = true }, { message = "^chore\\(pr\\)", skip = true }, { message = "^chore\\(pull\\)", skip = true },