From dbddf704f719fd7676619a52d402be21f0026f02 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 7 Apr 2025 14:17:10 +0200 Subject: [PATCH 1/3] Update release issue templates --- .../4-REGULAR_RELEASE_CHECKLIST.md | 12 +++--- .../5-PATCH_RELEASE_CHECKLIST.md | 38 ++++++++++++------- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/4-REGULAR_RELEASE_CHECKLIST.md b/.github/ISSUE_TEMPLATE/4-REGULAR_RELEASE_CHECKLIST.md index 39422af0ae..c4181df8e9 100644 --- a/.github/ISSUE_TEMPLATE/4-REGULAR_RELEASE_CHECKLIST.md +++ b/.github/ISSUE_TEMPLATE/4-REGULAR_RELEASE_CHECKLIST.md @@ -100,6 +100,7 @@ assignees: '' ``` cd wp-cli/builds/phar cp wp-cli-release.phar wp-cli.phar + cp wp-cli-release.manifest.json wp-cli.manifest.json md5 -q wp-cli.phar > wp-cli.phar.md5 shasum -a 256 wp-cli.phar | cut -d ' ' -f 1 > wp-cli.phar.sha256 shasum -a 512 wp-cli.phar | cut -d ' ' -f 1 > wp-cli.phar.sha512 @@ -139,6 +140,7 @@ assignees: '' cp wp-cli.phar.md5 wp-cli-2.x.0.phar.md5 cp wp-cli.phar.sha512 wp-cli-2.x.0.phar.sha256 cp wp-cli.phar.sha512 wp-cli-2.x.0.phar.sha512 + cp wp-cli.manifest.json wp-cli-2.x.0.manifest.json ``` Do this for both [`wp-cli/wp-cli`](https://github.com/wp-cli/wp-cli/) and [`wp-cli/wp-cli-bundle`](https://github.com/wp-cli/wp-cli-bundle/) @@ -147,13 +149,13 @@ assignees: '' ``` $ wp cli update - You have version 1.4.0-alpha-88450b8. Would you like to update to 1.4.0? [y/n] y - Downloading from https://github.com/wp-cli/wp-cli/releases/download/v1.4.0/wp-cli-1.4.0.phar... - md5 hash verified: 179fc8dacbfe3ebc2d00ba57a333c982 + You are currently using WP-CLI version 2.12.0-alpha-d2bfea9. Would you like to update to 2.12.0? [y/n] y + Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.12.0/wp-cli-2.12.0.phar... + sha512 hash verified: fe19025cc113142492a3ca68dd93d20ba4164e5ecb3c0a0d86a9db7e06b917201120763fa2b8256addeaa9cb745b2b8bef8e8d74a697230e30ef681f13e09186 New version works. Proceeding to replace. - Success: Updated WP-CLI to 1.4.0. + Success: Updated WP-CLI to 2.12.0. $ wp cli version - WP-CLI 2.8.1 + WP-CLI 2.12.0 $wp eval 'echo \WP_CLI\Utils\http_request( "GET", "https://api.wordpress.org/core/version-check/1.6/" )->body;' --skip-wordpress ``` diff --git a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md index 6872678ae5..4ffc6100ea 100644 --- a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md +++ b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md @@ -86,6 +86,7 @@ assignees: 'schlessera' ``` cd wp-cli/builds/phar cp wp-cli-release.phar wp-cli.phar + cp wp-cli-release.manifest.json wp-cli.manifest.json md5 -q wp-cli.phar > wp-cli.phar.md5 shasum -a 512 wp-cli.phar | cut -d ' ' -f 1 > wp-cli.phar.sha512 ``` @@ -110,30 +111,33 @@ assignees: 'schlessera' ``` git status git add . - git commit -m "Update stable to v1.x.0" + git commit -m "Update stable to v2.x.x" ``` - [ ] Create a release on GitHub: . Make sure to upload the Phar from the builds directory. ``` - cp wp-cli.phar wp-cli-1.x.0.phar - cp wp-cli.phar.gpg wp-cli-1.x.0.phar.gpg - cp wp-cli.phar.asc wp-cli-1.x.0.phar.asc - cp wp-cli.phar.md5 wp-cli-1.x.0.phar.md5 - cp wp-cli.phar.sha512 wp-cli-1.x.0.phar.sha512 + cp wp-cli.phar wp-cli-2.x.x.phar + cp wp-cli.phar.gpg wp-cli-2.x.x.phar.gpg + cp wp-cli.phar.asc wp-cli-2.x.x.phar.asc + cp wp-cli.phar.md5 wp-cli-2.x.x.phar.md5 + cp wp-cli.phar.sha512 wp-cli-2.x.x.phar.sha512 + cp wp-cli.manifest.json wp-cli-2.x.x.manifest.json ``` - [ ] Verify Phar release artifact ``` $ wp cli update - You have version 1.4.0-alpha-88450b8. Would you like to update to 1.4.0? [y/n] y - Downloading from https://github.com/wp-cli/wp-cli/releases/download/v1.4.0/wp-cli-1.4.0.phar... - md5 hash verified: 179fc8dacbfe3ebc2d00ba57a333c982 + You are currently using WP-CLI version 2.12.0-alpha-d2bfea9. Would you like to update to 2.12.1? [y/n] y + Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.12.1/wp-cli-2.12.1.phar... + sha512 hash verified: fe19025cc113142492a3ca68dd93d20ba4164e5ecb3c0a0d86a9db7e06b917201120763fa2b8256addeaa9cb745b2b8bef8e8d74a697230e30ef681f13e09186 New version works. Proceeding to replace. - Success: Updated WP-CLI to 1.4.0. - $ wp @daniel option get home - https://danielbachhuber.com + Success: Updated WP-CLI to 2.12.1. + $ wp cli version + WP-CLI 2.12.1 + $wp eval 'echo \WP_CLI\Utils\http_request( "GET", "https://api.wordpress.org/core/version-check/1.6/" )->body;' --skip-wordpress + ``` ### Updating the Debian and RPM builds @@ -174,6 +178,12 @@ assignees: 'schlessera' - [ ] Bump [VERSION](https://github.com/wp-cli/wp-cli/blob/master/VERSION) in [`wp-cli/wp-cli`](https://github.com/wp-cli/wp-cli) again. - For instance, if the release version was `0.24.0`, the version should be bumped to `0.25.0-alpha`. Doing so ensure `wp cli update --nightly` works as expected. + For instance, if the release version was `2.8.0`, the version should be bumped to `2.9.0-alpha`. -- [ ] Change the version constraint on `"wp-cli/wp-cli"` in `wp-cli/wp-cli-bundle`'s [`composer.json`](https://github.com/wp-cli/wp-cli-bundle/blob/master/composer.json) file back to `"dev-master"`. + Doing so ensure `wp cli update --nightly` works as expected. + +- [ ] Change the version constraint on `"wp-cli/wp-cli"` in `wp-cli/wp-cli-bundle`'s [`composer.json`](https://github.com/wp-cli/wp-cli-bundle/blob/master/composer.json) file back to `"dev-main"`. + + ``` + composer require wp-cli/wp-cli:dev-main + ``` From d8f23f088d70a6ae43d87ac993c63d2a8de1db94 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 7 Apr 2025 15:37:24 +0200 Subject: [PATCH 2/3] Fix branch name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Wojciech SmoliƄski --- .github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md index 4ffc6100ea..267655e196 100644 --- a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md +++ b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md @@ -182,7 +182,7 @@ assignees: 'schlessera' Doing so ensure `wp cli update --nightly` works as expected. -- [ ] Change the version constraint on `"wp-cli/wp-cli"` in `wp-cli/wp-cli-bundle`'s [`composer.json`](https://github.com/wp-cli/wp-cli-bundle/blob/master/composer.json) file back to `"dev-main"`. +- [ ] Change the version constraint on `"wp-cli/wp-cli"` in `wp-cli/wp-cli-bundle`'s [`composer.json`](https://github.com/wp-cli/wp-cli-bundle/blob/main/composer.json) file back to `"dev-main"`. ``` composer require wp-cli/wp-cli:dev-main From 18a8c6436ebb11dd31bb2f690bc6158405e3ffea Mon Sep 17 00:00:00 2001 From: isla w Date: Tue, 29 Apr 2025 11:00:35 -0400 Subject: [PATCH 3/3] Update .github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md Fix typo --- .github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md index 267655e196..e86ee350c5 100644 --- a/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md +++ b/.github/ISSUE_TEMPLATE/5-PATCH_RELEASE_CHECKLIST.md @@ -180,7 +180,7 @@ assignees: 'schlessera' For instance, if the release version was `2.8.0`, the version should be bumped to `2.9.0-alpha`. - Doing so ensure `wp cli update --nightly` works as expected. + Doing so ensures `wp cli update --nightly` works as expected. - [ ] Change the version constraint on `"wp-cli/wp-cli"` in `wp-cli/wp-cli-bundle`'s [`composer.json`](https://github.com/wp-cli/wp-cli-bundle/blob/main/composer.json) file back to `"dev-main"`.