Skip to content

Commit e729e0d

Browse files
authored
scripts: Don't capture output in prepare-release-pr.py (#8805)
We don't need to access the output in the script, and if we capture it, we don't get any output on CI, so no way to see why a release failed.
1 parent c19f63d commit e729e0d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

scripts/prepare-release-pr.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,16 @@ def prepare_release_pr(
6666

6767
run(
6868
["git", "config", "user.name", "pytest bot"],
69-
text=True,
7069
check=True,
71-
capture_output=True,
7270
)
7371
run(
7472
["git", "config", "user.email", "[email protected]"],
75-
text=True,
7673
check=True,
77-
capture_output=True,
7874
)
7975

8076
run(
8177
["git", "checkout", "-b", release_branch, f"origin/{base_branch}"],
82-
text=True,
8378
check=True,
84-
capture_output=True,
8579
)
8680

8781
print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} created.")
@@ -92,17 +86,13 @@ def prepare_release_pr(
9286
print("Running", " ".join(cmdline))
9387
run(
9488
cmdline,
95-
text=True,
9689
check=True,
97-
capture_output=True,
9890
)
9991

10092
oauth_url = f"https://{token}:[email protected]/{SLUG}.git"
10193
run(
10294
["git", "push", oauth_url, f"HEAD:{release_branch}", "--force"],
103-
text=True,
10495
check=True,
105-
capture_output=True,
10696
)
10797
print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} pushed.")
10898

0 commit comments

Comments
 (0)