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:
@ -26,7 +26,7 @@ class nfc_cz(BaseCommitizen):
|
|||||||
def changelog_message_builder_hook(self, parsed_message: dict, commit: git.GitCommit) -> dict:
|
def changelog_message_builder_hook(self, parsed_message: dict, commit: git.GitCommit) -> dict:
|
||||||
rev = commit.rev
|
rev = commit.rev
|
||||||
m = parsed_message["message"]
|
m = parsed_message["message"]
|
||||||
parsed_message["message"] = f"{rev} - {m}"
|
parsed_message["message"] = f"[{rev}]($CI_PROJECT_URL/-/commit/{rev}) - {m}"
|
||||||
return parsed_message
|
return parsed_message
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user