Merged in bugfix/allow-commit-messages-non-conventional (pull request #77)
bugfix: allow commits not compliant with conventional commits in changelog generation Approved-by: Jonathan Teran
This commit is contained in:
@@ -28,11 +28,15 @@ class Changelog:
|
|||||||
message = Git("show", commit, patch=False, format="%s").firstline()
|
message = Git("show", commit, patch=False, format="%s").firstline()
|
||||||
email = Git("show", commit, patch=False, format="%ae").firstline()
|
email = Git("show", commit, patch=False, format="%ae").firstline()
|
||||||
username = email[: email.index("@")]
|
username = email[: email.index("@")]
|
||||||
|
description = message
|
||||||
|
|
||||||
|
if ":" in message:
|
||||||
index = message.index(":")
|
index = message.index(":")
|
||||||
commit_type = message[:index]
|
commit_type = message[:index]
|
||||||
commit_message = message[index + 1 :]
|
commit_message = message[index + 1 :]
|
||||||
|
description = f"**{commit_type}**: {commit_message}"
|
||||||
|
|
||||||
content += f"- **{commit_type}**: {commit_message} [[{username}](mailto:{email})] ({commit})\n"
|
content += f"- {description} [[{username}](mailto:{email})] ({commit})\n"
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user