diff --git a/AUTHORS b/AUTHORS index 76099413072..d09c4dc98b4 100644 --- a/AUTHORS +++ b/AUTHORS @@ -251,6 +251,7 @@ Kevin Hierro Carrasco Kevin J. Foley Kian Eliasi Kian-Meng Ang +Kim Soo Kodi B. Arfer Kojo Idrissa Kostis Anagnostopoulos diff --git a/changelog/13638.bugfix.rst b/changelog/13638.bugfix.rst new file mode 100644 index 00000000000..b93c149e2df --- /dev/null +++ b/changelog/13638.bugfix.rst @@ -0,0 +1,2 @@ +Fixed deprecated ``gh pr new`` command in :file:`scripts/prepare-release-pr.py`. +The script now uses ``gh pr create`` which is compatible with GitHub CLI v2.0+. diff --git a/scripts/prepare-release-pr.py b/scripts/prepare-release-pr.py index b288e3b3982..eb4f19f8386 100644 --- a/scripts/prepare-release-pr.py +++ b/scripts/prepare-release-pr.py @@ -130,7 +130,7 @@ def prepare_release_pr(base_branch: str, is_major: bool, prerelease: str) -> Non [ "gh", "pr", - "new", + "create", f"--base={base_branch}", f"--head={release_branch}", f"--title=Release {version}",