0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-22 08:20:39 +00:00

docs: add validate commit message on readme

This commit is contained in:
Beatriz Vieira 2020-08-27 23:04:33 -03:00
parent 67cd90c762
commit de703f91ce

View File

@ -13,7 +13,7 @@ download the latest release and add the binary on your path
you can config using the environment variables you can config using the environment variables
| Variable | description | default | | Variable | description | default |
| --------- | ----------| ----------| | ------------------------------ | ---------------------------------------------------------------- | ------------------------------------------------------------ |
| MAJOR_VERSION_TYPES | types used to bump major version | | | MAJOR_VERSION_TYPES | types used to bump major version | |
| MINOR_VERSION_TYPES | types used to bump minor version | feat | | MINOR_VERSION_TYPES | types used to bump minor version | feat |
| PATCH_VERSION_TYPES | types used to bump patch version | build,ci,docs,fix,perf,refactor,style,test | | PATCH_VERSION_TYPES | types used to bump patch version | build,ci,docs,fix,perf,refactor,style,test |
@ -22,6 +22,8 @@ you can config using the environment variables
| ISSUEID_PREFIXES | list of prefixes that will be used to identify an issue id | jira:,JIRA:,Jira: | | ISSUEID_PREFIXES | list of prefixes that will be used to identify an issue id | jira:,JIRA:,Jira: |
| TAG_PATTERN | tag version pattern | %d.%d.%d | | TAG_PATTERN | tag version pattern | %d.%d.%d |
| RELEASE_NOTES_TAGS | release notes headers for each visible type | fix:Bug Fixes,feat:Features | | RELEASE_NOTES_TAGS | release notes headers for each visible type | fix:Bug Fixes,feat:Features |
| VALIDATE_MESSAGE_SKIP_BRANCHES | ignore branches from this list on validate commit message | master,develop |
| COMMIT_MESSAGE_TYPES | list of valid commit types for commit message | build,ci,chore,docs,feat,fix,perf,refactor,revert,style,test |
### Running ### Running
@ -56,13 +58,14 @@ git-sv rn -h
##### Available commands ##### Available commands
| Variable | description | has options | | Variable | description | has options |
| --------- | ---------- | :----------: | | ---------------------------- | ------------------------------------------------------ | :----------------: |
| current-version, cv | get last released version from git | :x: | | current-version, cv | get last released version from git | :x: |
| next-version, nv | generate the next version based on git commit messages | :x: | | next-version, nv | generate the next version based on git commit messages | :x: |
| commit-log, cl | list all commit logs since last version as jsons | :heavy_check_mark: | | commit-log, cl | list all commit logs since last version as jsons | :heavy_check_mark: |
| release-notes, rn | generate release notes | :heavy_check_mark: | | release-notes, rn | generate release notes | :heavy_check_mark: |
| changelog, cgl | generate changelog | :heavy_check_mark: | | changelog, cgl | generate changelog | :heavy_check_mark: |
| tag, tg | generate tag with version based on git commit messages | :x: | | tag, tg | generate tag with version based on git commit messages | :x: |
| validate-commit-message, vcm | use as prepare-commit-message hook to validate message | :heavy_check_mark: |
| help, h | Shows a list of commands or help for one command | :x: | | help, h | Shows a list of commands or help for one command | :x: |
## Development ## Development
@ -78,7 +81,7 @@ make
#### Make configs #### Make configs
| Variable | description | | Variable | description |
| --------- | ----------| | ---------- | ---------------------- |
| BUILDOS | build OS | | BUILDOS | build OS |
| BUILDARCH | build arch | | BUILDARCH | build arch |
| ECHOFLAGS | flags used on echo | | ECHOFLAGS | flags used on echo |
@ -86,7 +89,7 @@ make
| BUILDFLAGS | flags used on build | | BUILDFLAGS | flags used on build |
| Parameters | description | | Parameters | description |
| --------- | ----------| | ---------- | ----------------------------------- |
| args | parameters that will be used on run | | args | parameters that will be used on run |
```bash ```bash