diff --git a/dev/release/promote.py b/dev/release/promote.py index 874a347bd1..0e19e9634d 100644 --- a/dev/release/promote.py +++ b/dev/release/promote.py @@ -184,9 +184,7 @@ def run(self) -> int: branch_url = f"{REPO_URL}/tree/{branch_name}" release_url = f"{REPO_URL}/releases/tag/{version}" bcr_entry_url = f"https://registry.bazel.build/modules/rules_python/{version}" - bcr_query = ( - f'is:pr ("bazel-contrib/rules_python" in:title) ("@{version}" in:title)' - ) + bcr_query = f'is:pr ("rules_python" in:title) ("@{version}" in:title)' bcr_search_url = f"https://github.com/bazelbuild/bazel-central-registry/pulls?q={urllib.parse.quote(bcr_query)}" if run_id := os.environ.get("GITHUB_RUN_ID"): diff --git a/tests/tools/private/release/promote_test.py b/tests/tools/private/release/promote_test.py index e1c737ac22..a2c57c0b82 100644 --- a/tests/tools/private/release/promote_test.py +++ b/tests/tools/private/release/promote_test.py @@ -49,7 +49,7 @@ def test_promote_rc_success(mock_git, mock_gh): "Version **2.0.0** has been successfully generated and tagged on branch [`release/2.0`](https://github.com/bazel-contrib/rules_python/tree/release/2.0).\n\n" "- [Github Release 2.0.0](https://github.com/bazel-contrib/rules_python/releases/tag/2.0.0)\n" "- [BCR Entry 2.0.0](https://registry.bazel.build/modules/rules_python/2.0.0)\n" - "- [BCR PRs](https://github.com/bazelbuild/bazel-central-registry/pulls?q=is%3Apr%20%28%22bazel-contrib/rules_python%22%20in%3Atitle%29%20%28%22%402.0.0%22%20in%3Atitle%29)\n" + "- [BCR PRs](https://github.com/bazelbuild/bazel-central-registry/pulls?q=is%3Apr%20%28%22rules_python%22%20in%3Atitle%29%20%28%22%402.0.0%22%20in%3Atitle%29)\n" "- [Release workflow status](https://github.com/bazel-contrib/rules_python/actions/workflows/release_promote.yaml)" ) assert mock_gh.issue_comments[issue_num] == [expected_comment]