First, thank you for taking the time to contribute!
The following is a set of guidelines for contributors as well as information and instructions around our maintenance process. The two are closely tied together in terms of how we all work together and set expectations, so while you may not need to know everything in here to submit an issue or pull request, it's best to keep them in the same document.
Contributing isn't just writing code - it's anything that improves the project. All contributions are managed right here on GitHub. Here are some ways you can help:
If you're running into an issue, please take a look through existing issues and open a new one if needed. If you're able, include steps to reproduce, environment information, and screenshots/screencasts as relevant.
New features and enhancements are also managed via issues.
Pull requests represent a proposed solution to a specified problem. They should always reference an issue that describes the problem and contains discussion about the problem itself. Discussion on pull requests should be limited to the pull request itself, i.e. code review.
For more on how 10up writes and manages code, check out our 10up Engineering Best Practices.
Contributions are welcome (thank you!), to get started:
-
Clone the repository.
-
Install dependencies:
composer install
The develop branch is the development branch which means it contains the next version to be released. trunk contains the latest released version. Always work on the develop branch and open up PRs against develop.
- Branch: Starting from
develop, cut a release branch namedrelease/X.Y.Zfor your changes. - Changelog: Add/update the changelog in
CHANGELOG.md. - Props: update
CREDITS.mdwith any new contributors, confirm maintainers are accurate. - Readme updates: Make any other readme changes as necessary.
README.mdis geared toward GitHub andreadme.txtcontains WordPress.org-specific content. The two are slightly different. - Merge: Make a non-fast-forward merge from your release branch to
develop(or merge the pull request), then do the same fordevelopintotrunk, ensuring you pull the most recent changes intodevelopfirst (git checkout develop && git pull origin develop && git checkout trunk && git merge --no-ff develop).trunkcontains the stable development version. - Push: Push your
trunkbranch to GitHub (e.g.git push origin trunk). - Compare trunk to develop to ensure no additional changes were missed.
- Release: Create a new release, naming the tag and the release with the new version number, and targeting the
trunkbranch. Paste the changelog fromCHANGELOG.mdinto the body of the release and include a link to the closed issues on the milestone. - Close the milestone: Edit the X.Y.Z milestone with release date (in the
Due date (optional)field) and link to GitHub release (in theDescriptionfield), then close the milestone. - Punt incomplete items: If any open issues or PRs which were milestoned for
X.Y.Zdo not make it into the release, update their milestone toX+1.0.0,X.Y+1.0,X.Y.Z+1, orFuture Release.