From b6c165106361fa59cfa9f0ba018f4f442bd65e33 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 13 Nov 2024 00:13:13 +0000 Subject: [PATCH] fix: Respect the local_required bool. --- bin/check_release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check_release b/bin/check_release index 4f22fe1..7b6e807 100755 --- a/bin/check_release +++ b/bin/check_release @@ -154,7 +154,7 @@ def main(prog: str, args: List[str]) -> None: print(f"\nFAIL: Next GitHub Milestone release {ms_release} does not " f"match {local_origin} {local_release}") sys.exit(1) - if pr_release and pr_release != local_release: + if local_required and pr_release and pr_release != local_release: print(f"\nFAIL: PR milestone {pr_release} does not match " f"{local_origin} {local_release}") sys.exit(1)