From 2cb3db9135b10a79e67bed8bca322488a1bc1199 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 28 Sep 2024 16:45:12 -0400 Subject: [PATCH] silly --- commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit.py b/commit.py index 54bb00c..ea8de39 100755 --- a/commit.py +++ b/commit.py @@ -184,7 +184,7 @@ def make_release(env: EnvData, name): urls = [] for line in repos_v: origin = ''.join(itertools.takewhile(str.isalpha, line.decode('utf8'))) - urls.append("https://api.github.com/repos/" + open_process(["git", "remote", "get-url", origin], False)[0].decode('utf8').replace("\n", "").replace("https://github.com/", "") + "/releases") + urls.append(open_process(["git", "remote", "get-url", origin], False)[0].decode('utf8').replace("\n", "").replace(".git", "").replace("https://github.com/", "https://api.github.com/repos/") + "/releases") urls = set(urls) data = { 'tag_name': name,