cargo-smart-release
changelog generates broken (invalid) links when using ssh remote
#512
Closed
1 task done
Duplicates
Current behavior 😯
I've been using
cargo-smart-release
for months now and just noticed today that the links to commits in the generated changelog are invalid. See https://raw.githubusercontent.com/mattcl/confpiler/13c07d1003754ef0bfbccc350ffa7ac99b066d3d/confpiler_cli/CHANGELOG.mdSpecifically, the generated host is
https://github.comgit//
note the "git" suffix and the extra slash.That repo has the following remote configuration on my local machine:
I suspect this line to be the culprit, but I have to admit I've only briefly dug through the code.
gitoxide/cargo-smart-release/src/changelog/write.rs
Line 70 in 239cb8a
It would seem that the
user
in that case is going to begit
.Checking my other projects using smart release, they all exhibit this problem in their changelogs.
I can confirm that switching the remote url to use https instead of git@... generates a changelog with the correct commit links.
A quick search on github yields other repos with changelogs exhibiting the same issue. Here's an example https://raw.githubusercontent.com/saskenuba/yapay-sdk-rust/311697521ee9f7e3cdd721de13c16ff9a07a7c6d/CHANGELOG.md
Expected behavior 🤔
Expected behavior would be valid links to commits written to the changelog.
Steps to reproduce 🕹
It should be possible to reproduce this in any repository with a remote of
git@github.com:<user>/<repo>
.The text was updated successfully, but these errors were encountered: