From 31ec95bcc009993ba9c3ef08275f0c0374f26a26 Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Wed, 31 Jan 2024 23:48:51 +0800 Subject: [PATCH] =?UTF-8?q?build:=20[release]=20=E6=88=91=E6=9D=A5?= =?UTF-8?q?=E5=88=B7=E7=89=88=E6=9C=AC=E5=8F=B7=E8=BE=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 7d2286a..21e6ea6 100644 --- a/build.py +++ b/build.py @@ -13,7 +13,7 @@ def get_specified_tag(index): return subprocess.check_output(['git', 'tag']).decode('utf-8').strip().split("\n")[index] def get_changelog(): - cmd = ['git', 'log', f'{get_latest_tag()}..HEAD', '--pretty=format:"%h %s"'] + cmd = ['git', 'log', f'{toml.load("./pyproject.toml")["tool"]["poetry"]["version"])}..HEAD', '--pretty=format:"%h %s"'] print(cmd) res = subprocess.check_output(cmd).decode('utf-8').strip() res = res.split('\n')