From f6077d290e837b3dfcda506cdb39a80209250b5c Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 14 Sep 2023 16:26:27 -0400 Subject: [PATCH] Minor, but ensure we always match at least one number here. --- galaxy_release_util/bootstrap_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy_release_util/bootstrap_history.py b/galaxy_release_util/bootstrap_history.py index b7a30a0..956124b 100644 --- a/galaxy_release_util/bootstrap_history.py +++ b/galaxy_release_util/bootstrap_history.py @@ -375,7 +375,7 @@ def create_changelog(release_version: Version, galaxy_root: Path): seen_prs = set() try: with open(prs_file) as fh: - seen_prs = set(map(int, re.findall(r"\.\. _Pull Request (\d*): https", fh.read()))) + seen_prs = set(map(int, re.findall(r"\.\. _Pull Request (\d+): https", fh.read()))) except FileNotFoundError: pass _write_file(prs_file, PRS_TEMPLATE, skip_if_exists=True)