Skip to content

Commit 1f53300

Browse files
Regenerate README file (#84)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 05db281 commit 1f53300

1 file changed

Lines changed: 129 additions & 10 deletions

File tree

‎README.md‎

Lines changed: 129 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ gh repo fork
4343

4444
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.
4545

46+
Running `composer install` or `composer update` also fetches every clone and fast-forwards the ones that are clean and on their default branch. Clones with uncommitted changes or on another branch are only fetched, so work in progress is never switched away from.
47+
48+
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.
49+
4650
## Using
4751

4852
This package implements the following commands:
@@ -67,17 +71,17 @@ Lists all contributors to this release.
6771
wp maintenance contrib-list [<repo>] [<milestone>...] [--release=<version>] [--bundle-ref=<ref>] [--format=<format>]
6872
~~~
6973

70-
Run within the main WP-CLI project repository.
74+
Only authors of merged pull requests count; bots are left out.
7175

7276
**OPTIONS**
7377

7478
[<repo>]
75-
Name of the repository to fetch the release notes for. If no user/org
76-
was provided, 'wp-cli' org is assumed. If no repo is passed, release
77-
notes for the entire org state since the last bundle release are fetched.
79+
Name of the repository to list the contributors for. If no user/org
80+
was provided, 'wp-cli' org is assumed. If no repo is passed, the
81+
contributors to the entire org since the last bundle release are listed.
7882

7983
[<milestone>...]
80-
Name of one or more milestones to fetch the release notes for. If none
84+
Name of one or more milestones to list the contributors for. If none
8185
are passed, the current open one is assumed.
8286

8387
[--release=<version>]
@@ -100,7 +104,46 @@ Run within the main WP-CLI project repository.
100104
options:
101105
- markdown
102106
- html
107+
- json
108+
---
109+
110+
111+
112+
### wp maintenance doctor
113+
114+
Checks whether this environment can run the maintenance commands.
115+
116+
~~~
117+
wp maintenance doctor [--format=<format>]
118+
~~~
119+
120+
Reports which GitHub credentials are in use and for which account, the
121+
remaining API rate limit, and whether the tools the maintenance scripts
122+
rely on are available. Exits with an error code when a check fails.
123+
124+
Credentials come from the GitHub CLI when it is logged in, and from the
125+
GH_TOKEN or GITHUB_TOKEN environment variables otherwise.
126+
127+
**OPTIONS**
128+
129+
[--format=<format>]
130+
Render output in a specific format. Defaults to a table in a terminal
131+
and to JSON otherwise.
103132
---
133+
options:
134+
- table
135+
- json
136+
---
137+
138+
**EXAMPLES**
139+
140+
$ wp maintenance doctor
141+
+-------------+--------+---------------------------------------------+
142+
| check | status | message |
143+
+-------------+--------+---------------------------------------------+
144+
| credentials | ok | Using the login of the GitHub CLI (gh). |
145+
| account | ok | Authenticated as octocat. |
146+
...
104147

105148

106149

@@ -109,7 +152,7 @@ Run within the main WP-CLI project repository.
109152
Retrieves the milestones that were closed after a given milestone.
110153

111154
~~~
112-
wp maintenance milestones-after <repo> <milestone>
155+
wp maintenance milestones-after <repo> <milestone> [--format=<format>]
113156
~~~
114157

115158
**OPTIONS**
@@ -120,14 +163,23 @@ wp maintenance milestones-after <repo> <milestone>
120163
<milestone>
121164
Milestone to serve as threshold.
122165

166+
[--format=<format>]
167+
Render output in a specific format.
168+
---
169+
default: list
170+
options:
171+
- list
172+
- json
173+
---
174+
123175

124176

125177
### wp maintenance milestones-since
126178

127179
Retrieves the milestones that were closed for a given repository after a
128180

129181
~~~
130-
wp maintenance milestones-since <repo> <date>
182+
wp maintenance milestones-since <repo> <date> [--format=<format>]
131183
~~~
132184

133185
specific date threshold.
@@ -140,6 +192,71 @@ specific date threshold.
140192
<date>
141193
Threshold date to filter by.
142194

195+
[--format=<format>]
196+
Render output in a specific format.
197+
---
198+
default: list
199+
options:
200+
- list
201+
- json
202+
---
203+
204+
205+
206+
### wp maintenance release
207+
208+
209+
210+
~~~
211+
wp maintenance release
212+
~~~
213+
214+
215+
216+
217+
218+
### wp maintenance release close-released
219+
220+
Close the already released milestones.
221+
222+
~~~
223+
wp maintenance release close-released [<repo>...] [--bundle] [--all]
224+
~~~
225+
226+
**OPTIONS**
227+
228+
[<repo>...]
229+
Name(s) of the repository to close the milestones for. If no user/org was
230+
provided, 'wp-cli' org is assumed.
231+
232+
[--bundle]
233+
Close the milestones for the entire bundle.
234+
235+
[--all]
236+
Close the milestones for all repositories in the wp-cli organization.
237+
238+
239+
240+
### wp maintenance release generate
241+
242+
Generate a new release out of an open milestone
243+
244+
~~~
245+
wp maintenance release generate [<repo>...] [--bundle] [--all]
246+
~~~
247+
248+
**OPTIONS**
249+
250+
[<repo>...]
251+
Name(s) of the repository to generate a release for. If no user/org was
252+
provided, 'wp-cli' org is assumed.
253+
254+
[--bundle]
255+
Generate releases for the entire bundle.
256+
257+
[--all]
258+
Generate releases for all repositories in the wp-cli organization.
259+
143260

144261

145262
### wp maintenance release-date
@@ -153,11 +270,11 @@ wp maintenance release-date <repo> <release>
153270
**OPTIONS**
154271

155272
<repo>
156-
Name of the repository to fetch the release notes for. If no user/org
273+
Name of the repository to fetch the release date for. If no user/org
157274
was provided, 'wp-cli' org is assumed.
158275

159276
<release>
160-
Name of the release to fetch the release notes for.
277+
Name of the release to fetch the release date for.
161278

162279

163280

@@ -200,6 +317,7 @@ wp maintenance release-notes [<repo>] [<milestone>...] [--release=<version>] [--
200317
options:
201318
- release
202319
- pull-request
320+
---
203321

204322
[--format=<format>]
205323
Render output in a specific format.
@@ -208,6 +326,7 @@ wp maintenance release-notes [<repo>] [<milestone>...] [--release=<version>] [--
208326
options:
209327
- markdown
210328
- html
329+
- json
211330
---
212331

213332

@@ -228,7 +347,7 @@ label.
228347
Name of the repository you want to replace a label for.
229348

230349
<old-label>
231-
Old label to replace on all issues.
350+
Old label to replace on all issues and pull requests, open or closed.
232351

233352
<new-label>
234353
New label to replace it with.

0 commit comments

Comments
 (0)