From e2044e7a48236312d84efc8f2eecd04630f0a74c Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Wed, 26 Apr 2023 19:16:52 +0200 Subject: [PATCH] [CI] Improve automated commit messages --- .github/uploader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/uploader.py b/.github/uploader.py index fd6f1ec5b..7094179d8 100644 --- a/.github/uploader.py +++ b/.github/uploader.py @@ -1,6 +1,10 @@ from os import system as run, listdir, remove import tgconfig +with open("../.github/commit.json") as f: + data = load(f) + +message = f"Commit {data['sha'][0:7]}, signed off by: {data['commit']['author']['name']}" files, signed_files, unsigned_files = listdir(), [], [] for file in files: @@ -15,7 +19,7 @@ if len(signed_files): if tgconfig.GH_REPO.lower() == "libre-tube/libretube": run("git add -f *") - run('git commit -m "WORKFLOW: ALPHA BUILDS"') + run(f"git commit -m \"{message}\"") run("git push -u") else: print("Official Repo not Detected")