From 2ee40f5c350f8f6df2dfea404c7243d87f8f1fb7 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Thu, 9 Mar 2023 22:23:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20Changelog=20?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=99=A8=E7=94=9F=E6=88=90=E7=9A=84=20merge?= =?UTF-8?q?=20commit=20=E7=9A=84=E4=BD=9C=E8=80=85=E4=B8=8E=20message=20?= =?UTF-8?q?=E4=B8=AD=E5=A4=9A=E7=A9=BA=E6=A0=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/ChangelogGenerator/changelog_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ChangelogGenerator/changelog_generator.py b/tools/ChangelogGenerator/changelog_generator.py index 1a653f16e4..6ca86e5a9d 100644 --- a/tools/ChangelogGenerator/changelog_generator.py +++ b/tools/ChangelogGenerator/changelog_generator.py @@ -127,7 +127,7 @@ def print_commits(commits: dict, indent: str = "", need_sort: bool = True) -> (s print(f"Warning: `{x}` has no contributor!") else: contributor = contributor_re.group() - commit_message = re.sub(r"@\S*", "", commit_message) + commit_message = re.sub(r" *@\S*", "", commit_message) mes, ctrs = print_commits(commits[x], indent + " ", False) ret_message += indent + "- " + commit_message