The simple Git Flow util for help you use git flow as this https://danielkummer.github.io/git-flow-cheatsheet/index.html. Integration with Youtrack, Jira (set url and title to commit from task manager). Automate add version tag to master branch.
git clone https://github.com/darmshot/vd && cd vd(required go 1.18)
go build -ldflags "-X main.Version=$(git describe --tags)"chmod 755 build.sh./build.sh- Require .env file in project folder.
- Master branch should be named "master".
- Require develop branch.
- Project should be placed in remote repository
Create branch from develop branch. Make feature branch feature/task-1.
vd fs --name <task-name>Flags:
-n, --name string Feature name
Merge feature branch into develop and remove current feature branch.
vd ffThis make speed commit with url of task and title of task.
Just run simple command vd c in feature branch or vd c -t <number_task> for any other branch.
Allowed make commit with several number of task like vd c -t 001_002.
Require setup TASK_DRIVER COMMIT_MESSAGE_PREFIX in .env.
vd c(only feature branch)
Flags:
-m, --message string commit message
-t, --task string number task of numbers like 100 or 100_101
For example, if current git branch is feature/001. This automates create commit.
Result:
Some title of task
http://track-manager.url/path/TASK-001
Or for any other branch:
vd c -t 001Result:
http://track-manager.url/path/TASK-001 Some title of task
Also, you can put message into description with flag: --message.
vd c -t 001 --message "Some additional message"Result:
http://track-manager.url/path/001 Some title of task
Some additional message
Create release branch release/v0.1 and push to remote git repository.
First release should start with flag: --first.
By default, upper minor version. If you need up major use flag: --major.
Number tag will be got from last bigger version tag from you remote git repository.
vd rsFinish you release and merge with master branch. Marks master branch tag.
First release should finish with flag: --first.
vd rfCreate branch hotfix/vX.X.X from master (only in local repository).
vd hsMerge hotfix branch into master and develop. Marks master branch tag.
vd hf