From a85368fc771dcbb4db2b41818781e182845015b9 Mon Sep 17 00:00:00 2001 From: hugsy Date: Sun, 16 Apr 2023 10:05:55 -0700 Subject: [PATCH] [scripts] make `new-release` get the latest tags --- scripts/new-release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new-release.py b/scripts/new-release.py index d818c51c2..59fa65949 100644 --- a/scripts/new-release.py +++ b/scripts/new-release.py @@ -46,7 +46,7 @@ def shell(x: str) -> str: def generate_changelog(args: argparse.Namespace) -> bool: """Generate the changelog for the new release.""" - latest_tag = shell("git describe --abbrev=0") + latest_tag = shell("git describe --tags --abbrev=0") print(f"Creating changelog for {args.version} in {args.output_file.name}") args.output_file.write(f"# Changelog: {args.version} - {args.codename}{os.linesep}{os.linesep}")