Skip to content
Snippets Groups Projects
Commit 469b4e0f authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'fixes' into 'master'

Fixed typo in the code. It's patch, not path AND allow release with with empty tag comments

See merge request !64
parents f965c8e0 4b67ff53
No related branches found
No related tags found
1 merge request!64Fixed typo in the code. It's patch, not path AND allow release with with empty tag comments
Pipeline #31534 passed
...@@ -165,7 +165,7 @@ def get_parsed_tag(gitpkg, tag): ...@@ -165,7 +165,7 @@ def get_parsed_tag(gitpkg, tag):
assume_version = 'v1.0.0' assume_version = 'v1.0.0'
elif tag == 'minor': elif tag == 'minor':
assume_version = 'v0.1.0' assume_version = 'v0.1.0'
elif tag == 'path': elif tag == 'patch':
assume_version = 'v0.0.1' assume_version = 'v0.0.1'
logger.warn('Package %s does not have any tags. I\'m assuming ' \ logger.warn('Package %s does not have any tags. I\'m assuming ' \
'version will be %s since you proposed a "%s" bump', 'version will be %s since you proposed a "%s" bump',
...@@ -482,7 +482,8 @@ def release_package(gitpkg, tag_name, tag_comments_list, dry_run=False): ...@@ -482,7 +482,8 @@ def release_package(gitpkg, tag_name, tag_comments_list, dry_run=False):
if not dry_run: if not dry_run:
tag = gitpkg.tags.create({'tag_name': tag_name, 'ref': 'master'}) tag = gitpkg.tags.create({'tag_name': tag_name, 'ref': 'master'})
# update tag with comments # update tag with comments
tag.set_release_description(tag_comments) if tag_comments:
tag.set_release_description(tag_comments)
# get the pipeline that is actually running with no skips # get the pipeline that is actually running with no skips
running_pipeline = get_last_pipeline(gitpkg) running_pipeline = get_last_pipeline(gitpkg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment