From 4b67ff53e50fadbb81fc1cbf746d8b2993728640 Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Mon, 24 Jun 2019 16:17:55 +0200
Subject: [PATCH] Fixed typo in the code. It's patch, not path AND allow
 release with with empty tag comments

Fixed typo in the code. It's patch, not path AND allow release with with empty tag comments
---
 bob/devtools/release.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bob/devtools/release.py b/bob/devtools/release.py
index 0e45b949..8ca8eb3b 100644
--- a/bob/devtools/release.py
+++ b/bob/devtools/release.py
@@ -165,7 +165,7 @@ def get_parsed_tag(gitpkg, tag):
               assume_version = 'v1.0.0'
             elif tag == 'minor':
               assume_version = 'v0.1.0'
-            elif tag == 'path':
+            elif tag == 'patch':
               assume_version = 'v0.0.1'
             logger.warn('Package %s does not have any tags. I\'m assuming ' \
                 '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):
     if not dry_run:
         tag = gitpkg.tags.create({'tag_name': tag_name, 'ref': 'master'})
         # 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
     running_pipeline = get_last_pipeline(gitpkg)
-- 
GitLab