maintainers-guide.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Maintainer's guide
  2. ==================
  3. Commit policy
  4. -------------
  5. * Pull requests from outside contributors require a review from a maintainer.
  6. * Maintainers should avoid working on a master branch directly and create branches for everything. A code review from another maintainer is recommended but not required, use your best judgment.
  7. Release process
  8. ---------------
  9. Releases (minor) typically happen on a 6-week schedule.
  10. For major/minor releases you'll be releasing from ``master``. For patch releases you'll be releasing from a stable branch, such as ``9-16-stable``. This allows ongoing development of new features to continue in isolation (in master) without those changes leaking into patch releases (which should focus only on fixing breaking changes).
  11. The goal being that minor version series always get more stable over time and that patch releases do not add features.
  12. * For patch releases: First switch to the associated stable branch (i.e., ``9-16-stable``)
  13. * Update CHANGES.md with everything interesting since the last update.
  14. * Update version numbers using the three-part x.y.z notation everywhere:
  15. * The header in CHANGES.md (this is where the site looks for the latest version number)
  16. * ``"version"`` attribute in package.json
  17. * ``"version"`` attribute in package-lock.json (run `npm install`)
  18. * Two places in docs/conf.py (``version`` and ``release``)
  19. * Commit the version changes and tag the commit with the version number (``9.16.2``, no "v" prefix or anything like that)
  20. * For major/minor releases: Create a new ``[major]-[minor]-stable`` branch such as ``9-16-stable``
  21. * Push the commit and the tags (``git push && git push --tags``)
  22. Pushing the tag triggers the update process which can be monitored at http://highlightjs.org/api/release/
  23. When something didn't work *and* it's fixable in code (version numbers mismatch, last minute patches, etc), simply make another release incrementing the third (revision) part of the version number.