Skip to content

Commit

Permalink
Fix seen_prs set handling -- pr.number is an int, and previously this…
Browse files Browse the repository at this point in the history
… set was strings. Integer is better to use consistently.
  • Loading branch information
dannon committed Sep 14, 2023
1 parent e522dcc commit 0d84ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy_release_util/bootstrap_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(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)
Expand Down

0 comments on commit 0d84ad8

Please sign in to comment.