Skip to content

Commit cf4902d

Browse files
Regenerate README file
1 parent b49433d commit cf4902d

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Running `composer install` or `composer update` also fetches every clone and fas
4949

5050
The `wp maintenance` commands don't need the full environment: any `wp` executable picks them up through `wp-cli.yml` when run from this folder. They authenticate with the GitHub CLI when it is logged in, and with the `GH_TOKEN` or `GITHUB_TOKEN` environment variable otherwise. Run `wp maintenance doctor` to check the setup.
5151

52+
To find out which packages have unreleased changes, run `wp maintenance release plan --bundle`. It makes no changes, and for each package it says whether a milestone is ready for `wp maintenance release generate` or what a maintainer still needs to decide, such as which milestone a merged pull request belongs to.
53+
5254
## Using
5355

5456
This package implements the following commands:
@@ -261,6 +263,63 @@ wp maintenance release generate [<repo>...] [--bundle] [--all]
261263

262264

263265

266+
### wp maintenance release plan
267+
268+
Checks which repositories have unreleased changes, and whether their
269+
270+
~~~
271+
wp maintenance release plan [<repo>...] [--bundle] [--all] [--format=<format>]
272+
~~~
273+
274+
milestones are ready to release them.
275+
276+
Compares the default branch of each repository against its latest
277+
version tag and looks at the pull requests merged since. A repository is
278+
`up_to_date` when none of them calls for a release, `ready` when they
279+
all sit on one open milestone that `release generate` can release, and
280+
`needs_human` when a maintainer has to decide something first, such as
281+
which milestone a pull request belongs to. The blockers say what.
282+
283+
Routine pull requests by Dependabot or GitHub Actions only count when
284+
they are on a milestone.
285+
286+
Makes no changes.
287+
288+
**OPTIONS**
289+
290+
[<repo>...]
291+
Name(s) of the repository to check. If no user/org was provided,
292+
'wp-cli' org is assumed.
293+
294+
[--bundle]
295+
Check every package of the bundle.
296+
297+
[--all]
298+
Check all repositories in the wp-cli organization.
299+
300+
[--format=<format>]
301+
Render output in a specific format. Defaults to a table in a terminal
302+
and to JSON otherwise. The JSON lists the unreleased pull requests and
303+
the blockers of each repository as well.
304+
---
305+
options:
306+
- table
307+
- json
308+
---
309+
310+
**EXAMPLES**
311+
312+
$ wp maintenance release plan cache-command db-command eval-command
313+
+----------------------+-------------+------------+---------+------------+
314+
| repo | status | latest_tag | release | blockers |
315+
+----------------------+-------------+------------+---------+------------+
316+
| wp-cli/cache-command | ready | v3.0.0 | v3.0.1 | |
317+
| wp-cli/db-command | needs_human | v3.0.1 | | open_items |
318+
| wp-cli/eval-command | up_to_date | v3.0.1 | | |
319+
+----------------------+-------------+------------+---------+------------+
320+
321+
322+
264323
### wp maintenance release-date
265324

266325
Retrieves the date a given release for a repository was published at.

0 commit comments

Comments
 (0)