This is a PHP composer library fork based on the npm standard-version!
Automatic versioning and CHANGELOG generation, using GitHub's squash button and conventional commit messages.
how it works:
- when you land commits on your
master
branch, select the Squash and Merge option. - add a title and body that follows the Conventional Commits Specification.
- when you're ready to release:
git checkout master; git pull origin master
- run
standard-version
git push --follow-tags origin master && npm publish
standard-version
does the following:
- bumps the version in composer.json (based on your commit history)
- update CHANGELOG.md
- commits composer.json (et al.) and CHANGELOG.md
- tags a new release
Under construction
patches:
git commit -a -m "fix(parsing): fixed a bug in our parser"
features:
git commit -a -m "feat(parser): we now have a parser \o/"
breaking changes:
git commit -a -m "feat(new-parser): introduces a new parsing library
BREAKING CHANGE: new library does not support foo-construct"
other changes:
You decide, e.g., docs, chore, etc.
git commit -a -m "docs: fixed up the docs a bit"
but wait, there's more!
Github usernames (@bcoe
) and issue references (#133) will be swapped out for the
appropriate URLs in your CHANGELOG.
Under Construction
ISC