Skip to content

Commit

Permalink
Update woo.com domain, update feature-requests URL
Browse files Browse the repository at this point in the history
in yeoman generator.
  • Loading branch information
tomalec committed Nov 12, 2023
1 parent c1338c4 commit 27547bf
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@woocommerce.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@woo.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Expand Down
4 changes: 0 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ Grow Packages is licensed under the GPLv3+, and all contributions to the project
## Reporting Security Issues

Please see [SECURITY.md](./SECURITY.md).

## Feature Requests

Feature requests can be submitted to our [ideas board](https://ideas.woocommerce.com/forums/133476-woocommerce). Be sure to include a good description of the expected behavior and use case, and before submitting a request, please search for similar ones.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ The packages here are too experimental or too Grow-specific to be shared Woo-wid

<p align="center">
<br/><br/>
Made with 💜 by <a href="https://woocommerce.com/">WooCommerce</a>.<br/>
<a href="https://woocommerce.com/careers/">We're hiring</a>! Come work with us!
Made with 💜 by <a href="https://woo.com/">Woo</a>.<br/>
<a href="https://woo.com/careers/">We're hiring</a>! Come work with us!
</p>
4 changes: 2 additions & 2 deletions packages/github-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ gitGraph

<p align="center">
<br/><br/>
Made with 💜 by <a href="https://woocommerce.com/">WooCommerce</a>.<br/>
<a href="https://woocommerce.com/careers/">We're hiring</a>! Come work with us!
Made with 💜 by <a href="https://woo.com/">Woo</a>.<br/>
<a href="https://woo.com/careers/">We're hiring</a>! Come work with us!
</p>
4 changes: 2 additions & 2 deletions packages/js/generator-grow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Or call task separately:

<p align="center">
<br/><br/>
Made with 💜 by <a href="https://woocommerce.com/">WooCommerce</a>.<br/>
<a href="https://woocommerce.com/careers/">We're hiring</a>! Come work with us!
Made with 💜 by <a href="https://woo.com/">Woo</a>.<br/>
<a href="https://woo.com/careers/">We're hiring</a>! Come work with us!
</p>
19 changes: 11 additions & 8 deletions packages/js/generator-grow/generators/github/github.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe( ':github', function () {
} );
it( 'generate `.github/workflows/branch-labels.yml` file', async function () {
await helpers.run( githubPath ).then( function () {
assert.file( '.github/worflows/branch-labels.yml' );
assert.file( '.github/workflows/branch-labels.yml' );
} );
} );
it( 'Should use given project title in CONTRIBUTING.md', async function () {
Expand Down Expand Up @@ -62,25 +62,28 @@ describe( ':github', function () {
);
} );
} );
it( 'When ideasboard id is given, should generate ideas board link to the category.', async function () {
it( 'When slug is given, should generate feature requests page link.', async function () {
await helpers
.run( githubPath )
.withPrompts( { ideasboard: 1234567 } )
.withPrompts( { slug: 'foo-bar' } )
.then( function () {
assert.fileContent(
'.github/CONTRIBUTING.md',
'https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=1234567'
'https://woo.com/feature-requests/foo-bar'
);
} );
} );
it( 'If no ideasboard id given, should generate ideas board link with no category specified.', async function () {
it( 'If no slug is given, should use app name to generate the link.', async function () {
await helpers
.run( githubPath )
.withPrompts( { ideasboard: '' } )
.then( function () {
.withPrompts( { slug: '' } )
.then( function ( runResult ) {
// Appname default to the folder name.
const appname = runResult.generator.appname;

assert.fileContent(
'.github/CONTRIBUTING.md',
/https\:\/\/ideas\.woocommerce\.com\/forums\/133476-woocommerce[^?]/
`https://woo.com/feature-requests/${ appname }`
);
} );
} );
Expand Down
7 changes: 3 additions & 4 deletions packages/js/generator-grow/generators/github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ export default class GitHubGenerator extends Generator {
},
{
type: 'input',
name: 'ideasboard',
message:
"What's the plugin ideas board's category number? (leave empty if none)",
default: '',
name: 'slug',
message: "What's the plugin slug for feature requests page?",
default: this.appname.replace( /\s+/g, '-' ).toLowerCase(),
},
] );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@woocommerce.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@woo.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Please see [SECURITY.md](./SECURITY.md).

## Feature Requests

Feature requests can be submitted to our [ideas board](https://ideas.woocommerce.com/forums/133476-woocommerce<%= ideasboard ? `?category_id=${ ideasboard }` : '' %>). Be sure to include a good description of the expected behavior and use case, and before submitting a request, please search for similar ones.
Feature requests can be submitted to our [feature requests page](https://woo.com/feature-requests/<%= slug %>/). Be sure to include a good description of the expected behavior and use case, and before submitting a request, please search for similar ones.
4 changes: 2 additions & 2 deletions packages/js/storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Example of working implementation can be found in [GLA plugin storybook folder](

<p align="center">
<br/><br/>
Made with 💜 by <a href="https://woocommerce.com/">WooCommerce</a>.<br/>
<a href="https://woocommerce.com/careers/">We're hiring</a>! Come work with us!
Made with 💜 by <a href="https://woo.com/">Woo</a>.<br/>
<a href="https://woo.com/careers/">We're hiring</a>! Come work with us!
</p>
2 changes: 1 addition & 1 deletion packages/php/compat-checker/src/Checks/WCCompatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WCCompatibility extends CompatCheck {
*
* @var int|float The miniumum supported WooCommerce versions before the latest.
*
* @see https://woocommerce.com/support-policy/
* @see https://woo.com/support-policy/
*/
private $min_wc_semver = 0.2; // By default, the latest minus two version.

Expand Down

0 comments on commit 27547bf

Please sign in to comment.