wikimedia/update-history

A simple tool to update HISTORY.md files

1.0.1 2021-08-06 03:55 UTC

This package is auto-updated.

Last update: 2024-10-06 11:11:39 UTC


README

Latest Stable Version License

wikimedia/update-history

A simple tool to update HISTORY.md files when making a library release.

Additional documentation about this library can be found on mediawiki.org.

Usage

To make a release:

Step 1

bin/update-history [patch|minor|major]

This increments the version number for a patch release (or, if you specify, for a minor or major release instead) and updates the HISTORY.md with the new version number and the current date.

Step 2

git add HISTORY.md
git commit -m "Release <My Package> <VERSION>"
git tag <VERSION>

This step will be automated in the future.

Step 3

bin/update-history

This adds a new placeholder "x.x.x (not yet released)" section to the HISTORY.md.

Step 4

git add HISTORY.md
git commit -m "Bump HISTORY.md after release"

This step will be automated in the future.

Step 5 (optional)

Push these commits to your code review system.

git review

When they are merged you may have to verify that the tag created above still corresponds to the final merged commit, and if not:

git tag -f <new git hash> <VERSION>

And finally, push the new tag:

git push origin <VERSION>