Skip to content

Commit 0fe2b83

Browse files
LuisHenriLee-W
authored andcommitted
test(utils): add tag message parameters to create_tag function
1 parent 4c277ac commit 0fe2b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def get_current_branch() -> str:
5555
return c.out
5656

5757

58-
def create_tag(tag: str):
59-
c = git.tag(tag)
58+
def create_tag(tag: str, message: str | None = None):
59+
c = git.tag(tag, annotated=(message is not None), msg=message)
6060
if c.return_code != 0:
6161
raise exceptions.CommitError(c.err)
6262

0 commit comments

Comments
 (0)