From 2ddec092d32bd65135f00986aa51d14fa63f3bee Mon Sep 17 00:00:00 2001 From: popododo0720 Date: Fri, 8 Aug 2025 17:10:26 +0900 Subject: [PATCH 1/3] Fix deprecated 'gh pr new' command to 'gh pr create' --- scripts/prepare-release-pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}", From 785bac3f847c1223a2f40b790b95d6c1f142582c Mon Sep 17 00:00:00 2001 From: popododo0720 Date: Fri, 8 Aug 2025 17:18:45 +0900 Subject: [PATCH 2/3] Add changelog entry and update AUTHORS for gh pr command fix --- AUTHORS | 1 + changelog/13638.bugfix.rst | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog/13638.bugfix.rst 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..cb65f4c5491 --- /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+. \ No newline at end of file From c390eeed8dc51ea0861e61c005ae7d6c9eff2e91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 08:29:01 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- changelog/13638.bugfix.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/13638.bugfix.rst b/changelog/13638.bugfix.rst index cb65f4c5491..b93c149e2df 100644 --- a/changelog/13638.bugfix.rst +++ b/changelog/13638.bugfix.rst @@ -1,2 +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+. \ No newline at end of file +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+.