Contributions to the Magento Coding Standard codebase are done using the fork & pull model. This contribution model has contributors maintaining their own fork of the Magento Coding Standard repository. The forked repository is then used to submit a request to the base repository to “pull” a set of changes. For more information on pull requests please refer to GitHub Help.
Contributions can take the form of new components or features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), bug fixes or optimizations.
The Magento Coding Standard development team or community maintainers will review all issues and contributions submitted by the community of developers in the first in, first out order. During the review we might require clarifications from the contributor. If there is no response from the contributor within two weeks, the pull request will be closed.
For more detailed information on contribution please read our beginners guide.
- Contributions must adhere to the Magento coding standards.
- Pull requests (PRs) must be accompanied by a meaningful description of their purpose. Comprehensive descriptions increase the chances of a pull request being merged quickly and without additional clarification requests.
- Commits must be accompanied by meaningful commit messages.
- PRs which include bug fixes must be accompanied with a step-by-step description of how to reproduce the bug.
- PRs which include new logic or new rules must be submitted along with:
- Unit test coverage
- Proposed documentation updates. Documentation contributions can be submitted via the devdocs GitHub.
- For larger features or changes, please open an issue to discuss the proposed changes prior to development. This may prevent duplicate or unnecessary effort and allow other contributors to provide input.
- All automated tests must pass (all builds on Travis CI must be green).
If you are a new GitHub user, we recommend that you create your own free github account. This will allow you to collaborate with the Magento Coding Standard development team, fork the Magento Coding Standard project and send pull requests.
- Search current listed issues (open or closed) for similar proposals of intended contribution before starting work on a new contribution.
- Review the Contributor License Agreement if this is your first time contributing.
- Create and test your work.
- Fork the Magento Coding Standard repository according to the Fork A Repository instructions and when you are ready to send us a pull request – follow the Create A Pull Request instructions.
- Once your contribution is received the Magento Coding Standard development team will review the contribution and collaborate with you as needed.
Please note that this project is released with a Contributor Code of Conduct. We expect you to agree to its terms when participating in this project. The full text is available in the repository Wiki.
If you have any questions, join us in #beginners Slack chat. If you are not on our slack, click here to join.
Need to find a project? Check out the Slack Channels (with listed project info) and the Magento Community Portal.