github.com/fuale/version-cr
1.0.0 / published Jun 14, 2024 / repository
Automate versioning and CHANGELOG generation with semver and conventional commits
version
Simple app for generating changelog and bumping semver commit history
How It Works:
- Follow the Conventional Commits Specification in your repository.
- When you're ready to release, run
version bump.
version will then do the following:
- Retrieve the current version of your repository by looking at the last git tag.
- Generates a changelog based on your commits.
- Creates a new commit including your files and updated CHANGELOG.
- Creates a new tag with the new version number.
Usage
Building from Source
To build the app from source, run the following command:
# using shards
shards build
# using crystal
crystal build src/main.cr
This will create an executable named version in the bin.
Running
version -h # show help
version changes # generate changelog in current directory
version bump # create git tag and generate new changelog
Development
To run the tests, run the following command:
crystal spec
Contributing
- Fork it (https://github.com/your-github-user/version/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Akhmedov Farid - creator and maintainer