https://github.com/subitolabs/bump-bundle
Symfony bundle to deal with project (git) versioning and changelog.
https://github.com/subitolabs/bump-bundle
changelog ci-cd git semver symfony-bundle
Last synced: 6 months ago
JSON representation
Symfony bundle to deal with project (git) versioning and changelog.
- Host: GitHub
- URL: https://github.com/subitolabs/bump-bundle
- Owner: subitolabs
- License: apache-2.0
- Created: 2017-11-01T21:39:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T15:25:19.000Z (over 8 years ago)
- Last Synced: 2025-07-22T12:27:12.560Z (12 months ago)
- Topics: changelog, ci-cd, git, semver, symfony-bundle
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SubitolabsBumpBundle
======================
Symfony bundle to deal with project (git) versioning and changelog. Respect semantic versioning.
Installation
------------
Require [`subitolabs/bump-bundle`](https://packagist.org/packages/subitolabs/bump-bundle)
to your `composer.json` file:
```json
{
"require": {
"subitolabs/bump-bundle": "~1.0"
}
}
```
Register the bundle in `app/AppKernel.php`:
```php
// app/AppKernel.php
public function registerBundles()
{
$bundles[] = new Subitolabs\Bundle\BumpBundle\SubitolabsBumpBundle();
}
```
Console Command
---------------
### bump
```
Usage:
subitolabs:bump [options] [--] []
Arguments:
env Environment
position Position to increment: 0=nothing(default), 1=MAJOR, 2=MINOR, 3=PATCH [default: 0]
Options:
--dry-run Set to not alter data and git something
--message[=MESSAGE] Tag message [default: "Bump to {{tag}} with Subitolabs bump bundle"]
--tag[=TAG] How tag is made [default: "{{env}}-{{version}}"]
--file[=FILE] File to write version info (JSON encoded) [default: "./app/config/version.yml"]
--changelog[=CHANGELOG] CHANGELOG.md path [default: "./CHANGELOG.md"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The environment name [default: "dev"]
--no-debug Switches off debug mode
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Bump version according semantic versioning (http://semver.org/) - create git tag.
```
### changelog
```
Usage:
subitolabs:changelog [options]
Options:
--changelog[=CHANGELOG] CHANGELOG.md path [default: "./CHANGELOG.md"]
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The environment name [default: "dev"]
--no-debug Switches off debug mode
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Write full changelog based on git tags and git logs.
```
Configuration
-------------
Nothing to configure.