Skip to content

Absolute PR link in Changelog #849

Answered by orhun
mihaigalos asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋🏼

You can achieve this by using preprocessors/postprocessors:

[changelog]
postprocessors = [
  { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
]

[git]
# regex for preprocessing the commit messages
commit_preprocessors = [
  { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
]

Also see the other template examples: https://git-cliff.org/docs/templating/examples

Let me know if you need any further help :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mihaigalos
Comment options

Answer selected by mihaigalos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature/request New feature or request
2 participants
Converted from issue

This discussion was converted from issue #847 on September 14, 2024 08:41.