From 944adeef3e7c9d3d68586d81b60ed462b550309a Mon Sep 17 00:00:00 2001 From: schlessera Date: Sat, 27 May 2023 16:41:39 +0000 Subject: [PATCH 01/63] Update file(s) from wp-cli/.github --- .editorconfig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8ccb6af..84f918e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,9 @@ # editorconfig.org # WordPress Coding Standards -# http://make.wordpress.org/core/handbook/coding-standards/ +# https://make.wordpress.org/core/handbook/coding-standards/ + +# From https://github.com/WordPress/wordpress-develop/blob/trunk/.editorconfig with a couple of additions. root = true @@ -12,12 +14,13 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = tab -indent_size = 4 -[*.{json,yml,feature}] +[{*.yml,*.feature,.jshintrc,*.json}] indent_style = space indent_size = 2 -[composer.json] -indent_style = space -indent_size = 4 +[*.md] +trim_trailing_whitespace = false + +[{*.txt,wp-config-sample.php}] +end_of_line = crlf From 72bee9aaf321d812277c8c62657eec932830fe2d Mon Sep 17 00:00:00 2001 From: Todd Rinaldo Date: Thu, 24 Aug 2023 15:28:01 -0400 Subject: [PATCH 02/63] Provide the location to create a GITHUB_TOKEN --- .maintenance/clone-all-repositories.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index ad74ea5..6cde71e 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -25,6 +25,7 @@ if ( ! is_array( $repositories ) && property_exists( $repositories, 'message' ) ) { echo 'GitHub responded with: ' . $repositories->message . "\n"; echo "If you are running into a rate limiting issue during large events please set GITHUB_TOKEN environment variable.\n"; + echo "See https://github.com/settings/tokens\n"; exit( 1 ); } From 33fb317299a31e9f33c1b840abd72640602b4194 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 1 Sep 2023 05:44:36 -0700 Subject: [PATCH 03/63] Remove `wp-cli/snapshot-command` --- .maintenance/clone-all-repositories.php | 1 - 1 file changed, 1 deletion(-) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index 6cde71e..44f182b 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -7,7 +7,6 @@ 'ideas', 'package-index', 'sample-plugin', - 'snapshot-command', 'wp-cli-dev', 'wp-cli-roadmap', ); From c952c6036aeb58f85a1e89a8aa692d28509007bc Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 1 Sep 2023 06:04:35 -0700 Subject: [PATCH 04/63] Remove unused argument --- .maintenance/src/GitHub.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.maintenance/src/GitHub.php b/.maintenance/src/GitHub.php index 1fea60c..1791a6e 100644 --- a/.maintenance/src/GitHub.php +++ b/.maintenance/src/GitHub.php @@ -283,14 +283,12 @@ public static function delete_label( * * @param string $project * @param integer $milestone_id - * @param bool $only_merged * * @return array */ public static function get_project_milestone_pull_requests( $project, - $milestone_id, - $only_merged = true + $milestone_id ) { $request_url = sprintf( self::API_ROOT . 'repos/%s/issues', From 58614a76973522ae21f13e37cc273efc06426a49 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 1 Sep 2023 06:04:49 -0700 Subject: [PATCH 05/63] Ignore unused `$assoc_args` argument --- .maintenance/src/Milestones_After_Command.php | 2 +- .maintenance/src/Milestones_Since_Command.php | 2 +- .maintenance/src/Release_Date_Command.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.maintenance/src/Milestones_After_Command.php b/.maintenance/src/Milestones_After_Command.php index da640d0..9d03f4f 100644 --- a/.maintenance/src/Milestones_After_Command.php +++ b/.maintenance/src/Milestones_After_Command.php @@ -17,7 +17,7 @@ final class Milestones_After_Command { * * @when before_wp_load */ - public function __invoke( $args, $assoc_args ) { + public function __invoke( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed list( $repo, $milestone_name ) = $args; diff --git a/.maintenance/src/Milestones_Since_Command.php b/.maintenance/src/Milestones_Since_Command.php index cb4a2e0..d7ef4d0 100644 --- a/.maintenance/src/Milestones_Since_Command.php +++ b/.maintenance/src/Milestones_Since_Command.php @@ -19,7 +19,7 @@ final class Milestones_Since_Command { * * @when before_wp_load */ - public function __invoke( $args, $assoc_args ) { + public function __invoke( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed list( $repo, $date ) = $args; diff --git a/.maintenance/src/Release_Date_Command.php b/.maintenance/src/Release_Date_Command.php index 5a5b156..543b412 100644 --- a/.maintenance/src/Release_Date_Command.php +++ b/.maintenance/src/Release_Date_Command.php @@ -18,7 +18,7 @@ final class Release_Date_Command { * * @when before_wp_load */ - public function __invoke( $args, $assoc_args ) { + public function __invoke( $args, $assoc_args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed list( $repo, $milestone_name ) = $args; From 15cce48cc24d6ea7cba4efee32fac40e99d3cf0d Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 23 Oct 2023 14:20:44 +0200 Subject: [PATCH 06/63] Allow cloning `wp-cli/.github` --- .maintenance/clone-all-repositories.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index 44f182b..6df3b3d 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -11,6 +11,10 @@ 'wp-cli-roadmap', ); +$clone_destination_map = array( + '.github' => 'dot-github', +); + $request = 'https://api.github.com/orgs/wp-cli/repos?per_page=100'; $headers = ''; $token = getenv( 'GITHUB_TOKEN' ); @@ -37,9 +41,10 @@ } if ( ! is_dir( $repository->name ) ) { + $destination = isset( $clone_destination_map[ $repository->name ] ) ? $clone_destination_map[ $repository->name ] : ''; printf( "Fetching \033[32mwp-cli/{$repository->name}\033[0m...\n" ); $clone_url = getenv( 'GITHUB_ACTION' ) ? $repository->clone_url : $repository->ssh_url; - system( "git clone {$clone_url}" ); + system( "git clone {$clone_url} {$destination}" ); } $update_folders[] = $repository->name; From 8dda20ebeba56ea6f25c728d79793655702411bf Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 23 Oct 2023 14:39:38 +0200 Subject: [PATCH 07/63] Use custom destination folder for `refresh-repository.php` --- .maintenance/clone-all-repositories.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index 6df3b3d..675c964 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -40,14 +40,15 @@ continue; } + $destination = isset( $clone_destination_map[ $repository->name ] ) ? $clone_destination_map[ $repository->name ] : $repository->name; + if ( ! is_dir( $repository->name ) ) { - $destination = isset( $clone_destination_map[ $repository->name ] ) ? $clone_destination_map[ $repository->name ] : ''; printf( "Fetching \033[32mwp-cli/{$repository->name}\033[0m...\n" ); $clone_url = getenv( 'GITHUB_ACTION' ) ? $repository->clone_url : $repository->ssh_url; system( "git clone {$clone_url} {$destination}" ); } - $update_folders[] = $repository->name; + $update_folders[] = $destination; } $updates = implode( '\n', $update_folders ); From 711a7dceb74b98bab0e705ed68456d2d48ae9593 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 23 Oct 2023 14:40:06 +0200 Subject: [PATCH 08/63] Get default branch name from the right git dir --- .maintenance/refresh-repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.maintenance/refresh-repository.php b/.maintenance/refresh-repository.php index 5b0e5a9..fa3d2c1 100644 --- a/.maintenance/refresh-repository.php +++ b/.maintenance/refresh-repository.php @@ -10,7 +10,7 @@ printf( "--- Refreshing repository \033[32m{$repository}\033[0m ---\n" ); printf( "Switching to latest \033[33mdefault\033[0m branch...\n" ); -system( "git --git-dir={$path}/.git --work-tree={$path} checkout $(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)" ); +system( "git --git-dir={$path}/.git --work-tree={$path} checkout $(git --git-dir={$path}/.git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)" ); printf( "Pulling latest changes...\n" ); system( "git --git-dir={$path}/.git --work-tree={$path} pull" ); From 362abcc9b85f8c9c0df6cf699077069189d971ed Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 25 Oct 2023 09:39:44 +0200 Subject: [PATCH 09/63] =?UTF-8?q?Don=E2=80=99t=20run=20`version=5Fcompare`?= =?UTF-8?q?=20with=20`null`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I ran into deprecation warnings where `$tag` was `null` when running these commands in preparation for the 2.9.0 release --- .maintenance/src/Contrib_List_Command.php | 3 +++ .maintenance/src/Release_Notes_Command.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.maintenance/src/Contrib_List_Command.php b/.maintenance/src/Contrib_List_Command.php index f498b98..eaf3e4a 100644 --- a/.maintenance/src/Contrib_List_Command.php +++ b/.maintenance/src/Contrib_List_Command.php @@ -123,6 +123,9 @@ public function __invoke( $args, $assoc_args ) { $milestone = array_reduce( $milestones, function ( $tag, $milestone ) { + if ( ! $tag ) { + return $milestone->title; + } return version_compare( $milestone->title, $tag, '>' ) ? $milestone->title : $tag; } ); diff --git a/.maintenance/src/Release_Notes_Command.php b/.maintenance/src/Release_Notes_Command.php index cb27236..8565659 100644 --- a/.maintenance/src/Release_Notes_Command.php +++ b/.maintenance/src/Release_Notes_Command.php @@ -115,6 +115,9 @@ static function ( $latest, $milestone ) { $milestone = array_reduce( $milestones, function ( $tag, $milestone ) { + if ( ! $tag ) { + return $milestone->title; + } return version_compare( $milestone->title, $tag, '>' ) ? $milestone->title : $tag; } ); From 7003ae332479ef596f38e6eba11a60034089ca1b Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 27 Oct 2023 11:26:11 +0200 Subject: [PATCH 10/63] Make sure the adapted directory is checked for existence --- .maintenance/clone-all-repositories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index 675c964..83f8f19 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -42,7 +42,7 @@ $destination = isset( $clone_destination_map[ $repository->name ] ) ? $clone_destination_map[ $repository->name ] : $repository->name; - if ( ! is_dir( $repository->name ) ) { + if ( ! is_dir( $destination ) ) { printf( "Fetching \033[32mwp-cli/{$repository->name}\033[0m...\n" ); $clone_url = getenv( 'GITHUB_ACTION' ) ? $repository->clone_url : $repository->ssh_url; system( "git clone {$clone_url} {$destination}" ); From 5bde32b40c188824292bd617fdc19e80ddb1badd Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 1 Nov 2023 23:49:00 +0100 Subject: [PATCH 11/63] Ignore bot accounts in `wp maintenance contrib-list` (#55) * Ignore bot accounts in `contrib-list` * Fix PHPCS issues --------- Co-authored-by: Daniel Bachhuber --- .maintenance/src/Contrib_List_Command.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.maintenance/src/Contrib_List_Command.php b/.maintenance/src/Contrib_List_Command.php index eaf3e4a..d62fb28 100644 --- a/.maintenance/src/Contrib_List_Command.php +++ b/.maintenance/src/Contrib_List_Command.php @@ -33,10 +33,12 @@ final class Contrib_List_Command { * @when before_wp_load */ public function __invoke( $args, $assoc_args ) { + $repos = null; + $use_bundle = false; - $repos = null; - $milestone_names = null; - $use_bundle = false; + $ignored_contributors = [ + 'github-actions[bot]', + ]; if ( count( $args ) > 0 ) { $repos = [ array_shift( $args ) ]; @@ -196,6 +198,8 @@ function ( $a, $b ) { } } + $contributors = array_diff( $contributors, $ignored_contributors ); + WP_CLI::log( 'Total contributors: ' . count( $contributors ) ); WP_CLI::log( 'Total pull requests: ' . $pull_request_count ); From 2ef49b34cb7b0c84238e5c9744c492da4727ed21 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 8 Nov 2023 17:03:47 -0800 Subject: [PATCH 12/63] Update README to provide a better explanation of setting up (#56) * Update README to provide a better explanation of setting up * Consolidate installation execution steps --- .readme-partials/DEVELOPMENT.md | 8 +++++++- .readme-partials/INSTALLATION.md | 21 +++++++++++++-------- README.md | 28 ++++++++++++++++++++-------- 3 files changed, 40 insertions(+), 17 deletions(-) diff --git a/.readme-partials/DEVELOPMENT.md b/.readme-partials/DEVELOPMENT.md index e8d20ce..817d609 100644 --- a/.readme-partials/DEVELOPMENT.md +++ b/.readme-partials/DEVELOPMENT.md @@ -1,4 +1,10 @@ Every subfolder is a proper clone of the corresponding GitHub repository. This means that you can create new branches, make your changes, commit to the new branch and then submit as pull-request, all from within these folders. -As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable. +Unless you have commit access to the repository, you'll need to fork the repository in order to push your feature branch. [GitHub's CLI](https://github.com/cli/cli) is pretty helpful for this: + +```bash +cd core-command +gh repo fork +``` +As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable. diff --git a/.readme-partials/INSTALLATION.md b/.readme-partials/INSTALLATION.md index d66811a..d4d062e 100644 --- a/.readme-partials/INSTALLATION.md +++ b/.readme-partials/INSTALLATION.md @@ -1,13 +1,18 @@ -Clone this repository onto your hard drive and then use Composer to install all dependencies: +If you normally use WP-CLI on your web host or via Brew, you're most likely using the Phar executable (`wp-cli.phar`). This Phar executable file is the "built", singular version of WP-CLI. It is compiled from a couple dozen repositories in the WP-CLI GitHub organization. -``` -git clone https://github.com/wp-cli/wp-cli-dev -cd wp-cli-dev -composer install -``` - -This will: +In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` development environment on your local machine. The setup process will: 1. Clone all relevant packages from the `wp-cli` GitHub organization into the `wp-cli-dev` folder, and 2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder. 3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder. + +Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine. + +Once the prequisites are met, clone the GitHub repository and run the installation process: + +```bash +git clone https://github.com/wp-cli/wp-cli-dev wp-cli-dev +cd wp-cli-dev +composer install +composer prepare-tests +``` diff --git a/README.md b/README.md index 47da595..5e9df3f 100644 --- a/README.md +++ b/README.md @@ -11,24 +11,36 @@ Quick links: [Installation](#installation) | [Development](#development) | [Usin ## Installation -Clone this repository onto your hard drive and then use Composer to install all dependencies: +If you normally use WP-CLI on your web host or via Brew, you're most likely using the Phar executable (`wp-cli.phar`). This Phar executable file is the "built", singular version of WP-CLI. It is compiled from a couple dozen repositories in the WP-CLI GitHub organization. -``` -git clone https://github.com/wp-cli/wp-cli-dev -cd wp-cli-dev -composer install -``` - -This will: +In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` development environment on your local machine. The setup process will: 1. Clone all relevant packages from the `wp-cli` GitHub organization into the `wp-cli-dev` folder, and 2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder. 3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder. +Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine. + +Once the prequisites are met, clone the GitHub repository and run the installation process: + +```bash +git clone https://github.com/wp-cli/wp-cli-dev wp-cli-dev +cd wp-cli-dev +composer install +composer prepare-tests +``` + ## Development Every subfolder is a proper clone of the corresponding GitHub repository. This means that you can create new branches, make your changes, commit to the new branch and then submit as pull-request, all from within these folders. +Unless you have commit access to the repository, you'll need to fork the repository in order to push your feature branch. [GitHub's CLI](https://github.com/cli/cli) is pretty helpful for this: + +```bash +cd core-command +gh repo fork +``` + As the folders are also symlinked into the Composer `vendor` folder, you will always have the latest changes available when running WP-CLI through the `vendor/bin/wp` executable. ## Using From ccf79708ae56cb1b891381ff4ac3f4569d54d193 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 10 Nov 2023 07:00:39 -0800 Subject: [PATCH 13/63] Skip cloning `wp-cli/regenerate-readme` repo --- .maintenance/clone-all-repositories.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.maintenance/clone-all-repositories.php b/.maintenance/clone-all-repositories.php index 83f8f19..29c3656 100644 --- a/.maintenance/clone-all-repositories.php +++ b/.maintenance/clone-all-repositories.php @@ -6,6 +6,7 @@ 'dash-docset-generator', 'ideas', 'package-index', + 'regenerate-readme', 'sample-plugin', 'wp-cli-dev', 'wp-cli-roadmap', From 881fdc40bbbb87532afb139e41b2b4e53bbe8df8 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Tue, 19 Mar 2024 15:27:51 +0545 Subject: [PATCH 14/63] Fix typos and update docs --- .readme-partials/INSTALLATION.md | 2 +- README.md | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.readme-partials/INSTALLATION.md b/.readme-partials/INSTALLATION.md index d4d062e..b36d31c 100644 --- a/.readme-partials/INSTALLATION.md +++ b/.readme-partials/INSTALLATION.md @@ -8,7 +8,7 @@ In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine. -Once the prequisites are met, clone the GitHub repository and run the installation process: +Once the prerequisites are met, clone the GitHub repository and run the installation process: ```bash git clone https://github.com/wp-cli/wp-cli-dev wp-cli-dev diff --git a/README.md b/README.md index 5e9df3f..eb7549f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine. -Once the prequisites are met, clone the GitHub repository and run the installation process: +Once the prerequisites are met, clone the GitHub repository and run the installation process: ```bash git clone https://github.com/wp-cli/wp-cli-dev wp-cli-dev @@ -64,13 +64,22 @@ wp maintenance Lists all contributors to this release. ~~~ -wp maintenance contrib-list [--format=] +wp maintenance contrib-list [] [...] [--format=] ~~~ Run within the main WP-CLI project repository. **OPTIONS** + [] + Name of the repository to fetch the release notes for. If no user/org + was provided, 'wp-cli' org is assumed. If no repo is passed, release + notes for the entire org state since the last bundle release are fetched. + + [...] + Name of one or more milestones to fetch the release notes for. If none + are passed, the current open one is assumed. + [--format=] Render output in a specific format. --- @@ -156,7 +165,7 @@ wp maintenance release-notes [] [...] [--source=] [--fo [...] Name of one or more milestones to fetch the release notes for. If none - are passed, the currently open one is assumed. + are passed, the current open one is assumed. [--source=] Choose source from where to copy content. @@ -207,7 +216,7 @@ We appreciate you taking the initiative to contribute to this project. Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation. -For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policies and guidelines. +For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines. ### Reporting a bug @@ -225,6 +234,6 @@ Once you've decided to commit the time to seeing your pull request through, [ple ## Support -Github issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support +GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support From b81b3a13881afffb8d4dfb9ad13fdee57da803ac Mon Sep 17 00:00:00 2001 From: Mike Straw Date: Tue, 17 Sep 2024 10:38:29 -0700 Subject: [PATCH 15/63] Add link to database information --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb7549f..ea9be71 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev` 2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder. 3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder. -Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine. +Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a [functioning MySQL or MariaDB server on your local machine](https://github.com/wp-cli/wp-cli-tests?tab=readme-ov-file#the-database-credentials). Once the prerequisites are met, clone the GitHub repository and run the installation process: From 9a06612c00f7ee664c836c73b3d1b69599c485e2 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 6 Dec 2024 22:35:35 +0100 Subject: [PATCH 16/63] Update `wp-cli/php-cli-tools` dependency --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5e6784c..2023a95 100644 --- a/composer.json +++ b/composer.json @@ -221,7 +221,7 @@ "wp-cli/media-command": "dev-main", "wp-cli/mustangostang-spyc": "dev-master as 0.6.x-dev", "wp-cli/package-command": "dev-main", - "wp-cli/php-cli-tools": "dev-master as 0.11.x-dev", + "wp-cli/php-cli-tools": "dev-master as 0.12.x-dev", "wp-cli/profile-command": "dev-main", "wp-cli/restful": "dev-main", "wp-cli/rewrite-command": "dev-main", From c9d048b02cb0d2cf82f082a1eed4dbe6133dbc2f Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 1 Feb 2025 12:07:39 +0100 Subject: [PATCH 17/63] Fix wp-cli-bundle branch name --- foreach-bundle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foreach-bundle b/foreach-bundle index 4c6d86a..8396bf4 100755 --- a/foreach-bundle +++ b/foreach-bundle @@ -6,7 +6,7 @@ get_bundle_dependencies() { echo "wp-cli/wp-cli-bundle" - curl --silent "https://raw.githubusercontent.com/wp-cli/wp-cli-bundle/master/composer.json" \ + curl --silent "https://raw.githubusercontent.com/wp-cli/wp-cli-bundle/main/composer.json" \ | jq --raw-output '."require" | keys[] | select(startswith("wp-cli/"))' } From 18742942da598bdaa7ad1370c4649e5bbfebe9db Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 7 May 2025 14:05:43 +0200 Subject: [PATCH 18/63] Require PHP 7.2.24+ --- composer.json | 2 +- phpcs.xml.dist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2023a95..5692d8f 100644 --- a/composer.json +++ b/composer.json @@ -194,7 +194,7 @@ } ], "require": { - "php": ">=5.6.20", + "php": ">=7.2.24", "ext-json": "*", "ext-dom": "*", "wp-cli/admin-command": "dev-main", diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 142a306..9edfc31 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -38,7 +38,7 @@ - +