Skip to content

Commit 150fc95

Browse files
authored
Merge pull request #128 from wp-cli/125-contributing-file
Add a basic CONTRIBUTING.md to point to contrib guidelines
2 parents 76ab0ae + e31164e commit 150fc95

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Contributing
2+
============
3+
4+
We appreciate you taking the initiative to contribute to this project.
5+
6+
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.
7+
8+
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.

features/scaffold-package.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Feature: Scaffold WP-CLI commands
3838
},
3939
"""
4040
And the {PACKAGE_PATH}/local/wp-cli/foo/command.php file should exist
41+
And the {PACKAGE_PATH}/local/wp-cli/foo/CONTRIBUTING.md file should exist
42+
And the {PACKAGE_PATH}/local/wp-cli/foo/CONTRIBUTING.md file should contain:
43+
"""
44+
Contributing
45+
"""
4146
And the {PACKAGE_PATH}/local/wp-cli/foo/wp-cli.yml file should exist
4247
And the {PACKAGE_PATH}/local/wp-cli/foo/.travis.yml file should not exist
4348

@@ -139,6 +144,7 @@ Feature: Scaffold WP-CLI commands
139144
s
140145
s
141146
s
147+
s
142148
"""
143149

144150
When I run `wp scaffold package wp-cli/same-package --skip-tests`

src/ScaffoldPackageCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function package( $args, $assoc_args ) {
9696
"{$package_dir}/.gitignore" => file_get_contents( "{$package_root}/.gitignore" ),
9797
"{$package_dir}/.editorconfig" => file_get_contents( "{$package_root}/.editorconfig" ),
9898
"{$package_dir}/.distignore" => file_get_contents( "{$package_root}/.distignore" ),
99+
"{$package_dir}/CONTRIBUTING.md"=> file_get_contents( "{$package_root}/CONTRIBUTING.md" ),
99100
"{$package_dir}/wp-cli.yml" => $wp_cli_yml,
100101
"{$package_dir}/command.php" => Utils\mustache_render( "{$template_path}/command.mustache", $assoc_args ),
101102
"{$package_dir}/composer.json" => Utils\mustache_render( "{$template_path}/composer.mustache", $assoc_args ),

templates/readme-contributing.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ We appreciate you taking the initiative to contribute to this project.
22

33
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.
44

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

77
### Reporting a bug
88

0 commit comments

Comments
 (0)