Skip to content

Commit 3d58e8d

Browse files
authored
Fix gh pr new command (#13639)
Closes #13638
1 parent 3ce3fce commit 3d58e8d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ Kevin Hierro Carrasco
251251
Kevin J. Foley
252252
Kian Eliasi
253253
Kian-Meng Ang
254+
Kim Soo
254255
Kodi B. Arfer
255256
Kojo Idrissa
256257
Kostis Anagnostopoulos

changelog/13638.contrib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed deprecated :command:`gh pr new` command in :file:`scripts/prepare-release-pr.py`.
2+
The script now uses :command:`gh pr create` which is compatible with GitHub CLI v2.0+.

scripts/prepare-release-pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def prepare_release_pr(base_branch: str, is_major: bool, prerelease: str) -> Non
130130
[
131131
"gh",
132132
"pr",
133-
"new",
133+
"create",
134134
f"--base={base_branch}",
135135
f"--head={release_branch}",
136136
f"--title=Release {version}",

0 commit comments

Comments
 (0)