Skip to content

Include ticket numbers #1195

Answered by ognis1205
RWOverdijk asked this question in Q&A
Jul 1, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @RWOverdijk ,

https://git-cliff.org/docs/configuration/git/#link_parsers

Wouldn’t it be possible to use a link_parser like this?

# An array of link parsers for extracting external references, and turning them into URLs, using regex.
link_parsers = [
    { pattern = "JIRA\\(([A-Z]+-\\d+)\\)", text = "$1", href = "https://jira-url.com/$1" },
]

That way, if the commit message contains something like JIRA(XXX-000000), it should be included in commit.links and automatically linked in the changelog. Am I missing something here?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by RWOverdijk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants