From de2d9d12544c360c7a55979e3339a59ee3a2da84 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Sat, 28 Oct 2023 15:47:00 +0400 Subject: [PATCH] Refactoring table and links --- debuginfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debuginfo.py b/debuginfo.py index 9991d8948b..a6fc574dcd 100755 --- a/debuginfo.py +++ b/debuginfo.py @@ -32,7 +32,7 @@ def fetchCommits(url, type): repo = Repo(path) - info = f"|{type.upper()}|{repo.active_branch.name} |{repo.head.commit}|{os.linesep}" + info = f"| [DocSpace-{type}]({url}) | [{repo.active_branch.name}]({url}/tree/{repo.active_branch.name}) | [{repo.head.commit}]({url}/commit/{repo.head.commit}) |{os.linesep}" commits_str = repo.git.log(f"--pretty=format: {format}", "--no-merges", f"--since={LIMIT_DAYS}.days") #print(commits_str) @@ -57,14 +57,14 @@ def fetchCommits(url, type): if name not in data[date]: data[date][name] = [] - data[date][name].append(f"- [{type}]: {text} `{hash[0:7]}`") + data[date][name].append(f"- [{type}]: {text} [`{hash[0:7]}`]({url}/commit/{hash})") return info result = f"## Changelog{os.linesep}" result += f"| Repo | Branch | Last Commit |{os.linesep}" -result += f"| :--- | :--- | :--- |{os.linesep}" +result += f"| :- | :- | :- |{os.linesep}" result += fetchCommits(REPO_CLIENT_URL, CLIENT) result += fetchCommits(REPO_SERVER_URL, SERVER)