From 1ba4fc97a5eeffc536bec86b5d5c5e488a2cbb55 Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 7 Apr 2023 14:37:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8Dchangelogs=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/ChangelogGenerator/changelog_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ChangelogGenerator/changelog_generator.py b/tools/ChangelogGenerator/changelog_generator.py index cf4e2a8a4b..87716c0a15 100644 --- a/tools/ChangelogGenerator/changelog_generator.py +++ b/tools/ChangelogGenerator/changelog_generator.py @@ -189,12 +189,12 @@ def main(tag_name=None, latest=None): # 输出一张好看的 git log 图到控制台 git_pretty_command = rf'git log {latest}..HEAD --pretty=format:"%C(yellow)%d%Creset %s %C(bold blue)@%an%Creset (%Cgreen%h%Creset)" --graph' - os.system(git_pretty_command) + # os.system(git_pretty_command) print() # 获取详细的 git log 信息 # git_command = rf'git log {latest}..HEAD --pretty=format:"\"%H\":{{\"hash\":\"%h\",\"author\":\"%aN\",\"committer\":\"%cN\",\"message\":\"%s\",\"parent\":\"%P\"}},"' - git_command = rf'git log {latest}..HEAD --pretty=format:"%H%n%aN%n%cN%n%s%n%P%n' + git_command = rf'git log {latest}..HEAD --pretty=format:"%H%n%aN%n%cN%n%s%n%P%n"' with os.popen(git_command) as fp: bf = fp._stream.buffer.read() try: raw_gitlogs = bf.decode().strip()