From 3ff30fab517f8af279e894674a65fcfbc834c298 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 23 Oct 2023 21:55:12 +0200 Subject: [PATCH] Ignore commit without PR --- galaxy_release_util/point_release.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/galaxy_release_util/point_release.py b/galaxy_release_util/point_release.py index 4bcfead..babd3f0 100644 --- a/galaxy_release_util/point_release.py +++ b/galaxy_release_util/point_release.py @@ -253,7 +253,8 @@ def commits_to_prs(packages: List[Package]): pr_cache[pr.number] = pr commit_to_pr[commit] = pr_cache[pr.number] for package in packages: - package.prs = set(commit_to_pr[commit] for commit in package.commits) + # Exclude commits without PRs + package.prs = set(commit_to_pr[commit] for commit in package.commits if commit in commit_to_pr) def update_package_history(package: Package, new_version: Version):