Skip to content

Commit 4011e3e

Browse files
committed
Add handy link for checking branch protection rules
1 parent 04911e1 commit 4011e3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run_release.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,10 @@ def _push_to_upstream(dry_run: bool = False) -> None:
11831183
"Does these operations look reasonable? ⚠️⚠️⚠️ Answering 'yes' will push to the upstream repository ⚠️⚠️⚠️"
11841184
):
11851185
raise ReleaseException("Something is wrong - Push to upstream aborted")
1186-
if not ask_question("Is the target branch unprotected for your user?"):
1186+
if not ask_question(
1187+
"Is the target branch unprotected for your user? "
1188+
"Check at https://github.com/python/cpython/settings/branches"
1189+
):
11871190
raise ReleaseException("The target branch is not unprotected for your user")
11881191
_push_to_upstream(dry_run=False)
11891192

0 commit comments

Comments
 (0)