Skip to content

Commit 6bccbbf

Browse files
LuisHenriLee-W
authored andcommitted
feat(commands-bump): automatically create annotated tag if message is given
1 parent 25c0327 commit 6bccbbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commitizen/commands/bump.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ def __call__(self): # noqa: C901
366366
signed=self.bump_settings.get("gpg_sign", False)
367367
or bool(self.config.settings.get("gpg_sign", False)),
368368
annotated=self.bump_settings.get("annotated_tag", False)
369-
or bool(self.config.settings.get("annotated_tag", False)),
369+
or bool(self.config.settings.get("annotated_tag", False))
370+
or self.bump_settings.get("annotated_tag_message", False),
370371
msg=self.bump_settings.get("annotated_tag_message", None),
371372
# TODO: also get from self.config.settings?
372373
)

0 commit comments

Comments
 (0)