Skip to content

Commit

Permalink
feat(ci): replace issue link, add commit hash in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cho committed Nov 24, 2023
1 parent 87d6876 commit 7cb35c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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="") }}](<REPO>/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}\n
"""
Expand All @@ -34,7 +34,7 @@ footer = """
"""
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
{ pattern = '<REPO>', replace = "https://github.com/vince-test-org/changelog-generator-example" }, # replace repository URL
]
[git]
# parse the commits based on https://www.conventionalcommits.org
Expand All @@ -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}](<REPO>/issues/${2}))"}, # replace issue numbers
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
commit_parsers = [
Expand Down

0 comments on commit 7cb35c9

Please sign in to comment.