diff --git a/CMakeLists.txt b/CMakeLists.txt index c5a9e91..55dd286 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,4 +164,4 @@ if (${BUILD_TESTS}) message("Built tests") endif () -project(BLT) \ No newline at end of file +project(BLT) diff --git a/commit.py b/commit.py index a940032..00d0d95 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,