Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 3.02 KB

CONTRIBUTING.md

File metadata and controls

37 lines (27 loc) · 3.02 KB

Contributing

The best way to contribute to the development of this plugin is by participating on the GitHub project:

https://github.com/pantheon-systems/pantheon-advanced-page-cache

Pull requests and issues are welcome!

Workflow

Development and releases are structured around two branches, develop and release. The develop branch is the default branch for the repository, and is the source and destination for feature branches.

We prefer to squash commits (i.e. avoid merge PRs) from a feature branch into develop when merging, and to include the PR # in the commit message. PRs to develop should also include any relevent updates to the changelog in readme.txt. For example, if a feature constitutes a minor or major version bump, that version update should be discussed and made as part of approving and merging the feature into develop.

develop should be stable and usable, though possibly a few commits ahead of the public release on wp.org.

The release branch matches the latest stable release deployed to wp.org.

Release Process

  1. Merge your feature branch into develop with a PR. This PR should include any necessary updates to the changelog in readme.txt and README.md.
  2. A draft release PR will be generated by the release-pr action. This PR needs to be switched to Ready to Review so automated testing will run.
  3. After merging the release PR to the release branch, a draft Release will be automatically be created by the build-tag-release workflow. This draft release will be automatically pre-filled with release notes.
  4. Confirm that the necessary assets are present in the newly created tag, and test on a WP install if desired.
  5. Review the release notes making any necessary changes and publish the release.
  6. Wait for the Release pantheon-advanced-page-cache plugin to wp.org action to finish deploying to the WordPress.org plugin repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  7. Check WordPress.org: Ensure that the changes are live on the plugin repository. This may take a few minutes.
  8. Following the release, prepare the next dev version with the following steps:
    • git checkout release
    • git pull origin release
    • git checkout develop
    • git rebase release
    • Update the version number in all locations, incrementing the version by one patch version, and add the -dev flag (e.g. after releasing 1.2.3, the new verison will be 1.2.4-dev)
    • Add a new ** X.Y.X-dev ** heading to the changelog in readme.txt and README.md
    • git add -A .
    • git commit -m "Prepare X.Y.X-dev"
    • git push origin develop