[meld] Update maintenance script for newer Gitlab release API



commit 98e9a7eaf6df49cc1ebca07eeb341d27852fea66
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Aug 14 08:27:23 2022 +1000

    Update maintenance script for newer Gitlab release API

 maint | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/maint b/maint
index 6e1a3975..b12edd86 100755
--- a/maint
+++ b/maint
@@ -319,11 +319,10 @@ def gitlab_release_tag(tag):
     cmd = ['git', 'tag', '-l', "--format=%(contents)", tag]
     description = subprocess.check_output(cmd).decode('utf-8')
 
-    endpoint = '{base}/projects/{id}/repository/tags/{tag_name}/release'
+    endpoint = '{base}/projects/{id}/releases'
     release_url = endpoint.format(
         base=GITLAB_API_BASE,
         id=urllib.parse.quote_plus(GITLAB_PROJECT_ID),
-        tag_name=tag,
     )
     release_data = {
         "tag_name": tag,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]