From 77a86053276f94af5446ff18a79c549986852e1a Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Sat, 5 Mar 2022 10:11:46 +0100 Subject: [PATCH] [release] Fix minor glitch --- bob/devtools/release.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bob/devtools/release.py b/bob/devtools/release.py index 3193c0fc..d937bce8 100644 --- a/bob/devtools/release.py +++ b/bob/devtools/release.py @@ -548,11 +548,14 @@ def release_package(gitpkg, tag_name, tag_comments_list, dry_run=False): tag_comments = "\n".join(tag_comments_list) logger.debug("Updating tag comments with:\n%s", tag_comments) if not dry_run: - tag = gitpkg.releases.create({"tag_name": tag_name, "ref": "master"}) - # update tag with comments + params = { + "name": tag_name, + "tag_name": tag_name, + "ref": "master", + } if tag_comments: - tag.description = tag_comments - tag.save() + params["description"] = tag_comments + gitpkg.releases.create(params) # get the pipeline that is actually running with no skips running_pipeline = get_last_pipeline(gitpkg) -- GitLab