Skip to content

Commit 976343b

Browse files
hugovkAA-Turner
andauthored
Add handy link for checking branch protection rules (#222)
Co-authored-by: Adam Turner <[email protected]>
1 parent b025512 commit 976343b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

run_release.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,10 +1180,13 @@ def _push_to_upstream(dry_run: bool = False) -> None:
11801180

11811181
_push_to_upstream(dry_run=True)
11821182
if not ask_question(
1183-
"Does these operations look reasonable? ⚠️⚠️⚠️ Answering 'yes' will push to the upstream repository ⚠️⚠️⚠️"
1183+
"Do 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)