How are links generated? #95
-
This tool is fantastic, but I'm having some difficulty with some of the automatically created links in the output. For example, the version link at the top and the "Compare with v##.##.##" links in the changelog are blank. I can't find anything in the documentation that references how these links are generated and it appears to be created in the template. For example, when running against my test repo, I get this:
Clearly it knows the URL to the commits and that link works. However, the generated links on both "3.0.0" and "Compare with v2.0.0" are have no URL. Why is that happening and how can it be fixed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thanks for the kind words! I agree it's confusing that commits get URLs but not tags or compare links. It's because your remote URL is not recognized as a supported "provider" (GitHub, GitLab, BitBucket IIRC). When parsing commits, git-changelog sees there's no provider so it falls back to a hardcoded URL like In the meantime, try passing |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply. This sorta worked. The result of using
The problem here is that our tag is not "3.0.0". It is `v3.0.0". It managed to figure out the previous tag was "v2.0.0" because "Compare with v2.0.0" references "v2.0.0". But the URL links referencing "3.0.0" as the tag are all wrong. |
Beta Was this translation helpful? Give feedback.
Thanks for the prompt reply. This sorta worked. The result of using
--provider
was:The problem here is that our tag is not "3.0.0". It is `v3.0.0". It managed to figure out the previous tag was "v2.0.0" because "Compare with v2.0.0" references "v2.0.0". But the URL links referencing "3.0.0" as the tag are all wrong.