Skip to content

Commit 0d357f6

Browse files
Merge pull request #130 from miya0001/add-support-policy-to-readme
Add support policy to readme
2 parents 8735e26 + 9a809c2 commit 0d357f6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Scaffold WP-CLI commands with functional tests
55

66
[![Build Status](https://travis-ci.org/wp-cli/scaffold-package-command.svg?branch=master)](https://travis-ci.org/wp-cli/scaffold-package-command) [![CircleCI](https://circleci.com/gh/wp-cli/scaffold-package-command/tree/master.svg?style=svg)](https://circleci.com/gh/wp-cli/scaffold-package-command/tree/master)
77

8-
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing)
8+
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

1010
## Using
1111

@@ -144,7 +144,7 @@ WP-CLI Behat framework uses Behat ~2.5, which is installed with Composer.
144144
**OPTIONS**
145145

146146
<dir>
147-
The package directory to generate tests for.
147+
Directory path to an existing package to generate tests for.
148148

149149
[--ci=<provider>]
150150
Create a configuration file for a specific CI provider.
@@ -232,7 +232,7 @@ In this example:
232232
**OPTIONS**
233233

234234
<dir>
235-
Directory of an existing command.
235+
Directory path to an existing package to generate a readme for.
236236

237237
[--force]
238238
Overwrite the readme if it already exists.
@@ -256,7 +256,7 @@ files include:
256256
**OPTIONS**
257257

258258
<dir>
259-
The package directory to generate GitHub configuration for.
259+
Directory path to an existing package to generate GitHub configuration for.
260260

261261
[--force]
262262
Overwrite files that already exist.
@@ -275,7 +275,7 @@ We appreciate you taking the initiative to contribute to this project.
275275

276276
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.
277277

278-
For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/).
278+
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.
279279

280280
### Reporting a bug
281281

@@ -291,5 +291,9 @@ Want to contribute a new feature? Please first [open a new issue](https://github
291291

292292
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience.
293293

294+
## Support
295+
296+
Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support
297+
294298

295299
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*

src/ScaffoldPackageCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public function package_readme( $args, $assoc_args ) {
298298
'Using',
299299
'Installing',
300300
'Contributing',
301+
'Support',
301302
);
302303
}
303304

@@ -309,7 +310,7 @@ public function package_readme( $args, $assoc_args ) {
309310
);
310311
}
311312
$bundled = ! empty( $composer_obj['extra']['bundled'] );
312-
foreach( array( 'using', 'installing', 'contributing' ) as $key ) {
313+
foreach( array( 'using', 'installing', 'contributing', 'support' ) as $key ) {
313314
if ( isset( $readme_sections[ $key ] ) ) {
314315
$file = dirname( dirname( __FILE__ ) ) . '/templates/readme-' . $key . '.mustache';
315316
if ( $bundled

templates/readme-support.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support

0 commit comments

Comments
 (0)