Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 2.14 KB

File metadata and controls

59 lines (36 loc) · 2.14 KB

Contributing

We welcome contributions to WordPress Multi-Environment Config.

All contributors must agree to our Code of Conduct.

WordPress Multi-Environment Config is released under the MIT license and is copyright Studio 24 Ltd. All contributors must accept these license and copyright conditions.

Issues

Please submit any issues to the issues log. You are welcome to fork the project and create suggested fixes.

Pull Requests

All contributions must be made on a branch and must be merged into the main branch via Pull Requests.

All Pull Requests need at least one approval from the Studio 24 development team.

Tests

Simple PHPUnit tests can be added to the tests/ folder. Please try to add tests for any future changes.

Continuous integration

GitHub actions runs PHPUnit tests and PHPStan for code quality (checks tests/* and the wp-config.load.php file). You can set this up locally via:

composer install

Run PHPUnit via:

vendor/bin/phpunit

Run PHPStan via:

vendor/bin/phpstan analyse

Creating new releases

This repo uses Release Please to automatically create releases, based on semantic versioning.

To create a new release use conventional commits in your commit message. On merging new code to the main branch this will automatically create a release PR, which you can merge to create the new release when you are ready.

Use the following keywords in your commits:

  • fix: this indicates a bug fix and creates a new patch version (e.g. 1.0.1).
  • feat: this indicates a new feature and creates a new minor version (e.g. 1.1.0).
  • To create a new major version (e.g. 2.0.0) either append an exclamation mark to fix!: or feat!: or add a footer of BREAKING CHANGE: with details of what breaking changes there are.

If the action fails to run you can view the action and select Re-run all jobs to re-run it.