Skip to content

Commit 0488ebe

Browse files
committed
Drop slice-insert trick in 3-open-pr.py
Replace cmd[2:2] = ['-R', repo] with a plain cmd += ['-R', repo]. gh accepts flags in any order; appending is more idiomatic.
1 parent aca7a73 commit 0488ebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/flaky-test-fix/3-open-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def main():
107107
"--base", base,
108108
"--head", head]
109109
if repo:
110-
cmd[2:2] = ["-R", repo]
110+
cmd += ["-R", repo]
111111
if draft:
112112
cmd.append("--draft")
113113
print(f"Opening PR: {' '.join(cmd)}")

0 commit comments

Comments
 (0)