Last active
July 26, 2020 15:22
-
-
Save woile/4c13a7c9f64c81fbb18169bec8e883c7 to your computer and use it in GitHub Desktop.
Commitizen demo example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| set -v | |
| # python -m pip install -U commitizen | |
| cd /tmp | |
| mkdir cz-example/ | |
| cd cz-example/ | |
| git init | |
| # -------------------------------------------- | |
| read | |
| cat <<EOT > .cz.toml | |
| [tool.commitizen] | |
| version = "0.0.1" | |
| EOT | |
| cat .cz.toml | |
| git add .cz.toml | |
| # -------------------------------------------- | |
| read | |
| touch users.py | |
| git add users.py | |
| git commit -am "feat: add users component" | |
| # -------------------------------------------- | |
| read | |
| touch employees.py | |
| git add employees.py | |
| git commit -am "feat: add employees component" | |
| # -------------------------------------------- | |
| read | |
| cz bump --yes --changelog | |
| # -------------------------------------------- | |
| read | |
| ls | |
| # -------------------------------------------- | |
| read | |
| cat CHANGELOG.md | |
| # -------------------------------------------- | |
| read | |
| git rm employees.py | |
| git commit -am "feat: add employees component | |
| BREAKING CHANGE: employees no longer supported, just user users now, the interface is the same" | |
| # -------------------------------------------- | |
| read | |
| cz bump --yes --changelog | |
| # -------------------------------------------- | |
| read | |
| cat CHANGELOG.md | |
| # -------------------------------------------- | |
| read | |
| rm -rf /tmp/cz-example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment