refactor(gitlab_release): build gitlab commit url for changelog so that there is a weblink to the changes

The mirror on github, did not have the commit hashes as links to the commit.

Now a full gitlab commit URL is built as part of the changelog.

#1
This commit is contained in:
2021-08-04 11:16:44 +09:30
parent 6d34977426
commit 72e8b6c84d

View File

@ -26,7 +26,7 @@ class nfc_cz(BaseCommitizen):
def changelog_message_builder_hook(self, parsed_message: dict, commit: git.GitCommit) -> dict:
rev = commit.rev
m = parsed_message["message"]
parsed_message["message"] = f"{rev} - {m}"
parsed_message["message"] = f"[{rev}]($CI_PROJECT_URL/-/commit/{rev}) - {m}"
return parsed_message