Lint your messages
Go to releases section
brew tap gitector/gitector
<- Add external tap with gitectorbrew install gitector
<- install gitector
make build
<- to buildmake install
<- to install
gitector init
-
gitector
– Test commits from current branch compared to master -
gitector master -l 10
– Test last 10 commits from master -
gitector feature-1..long-last-branch
– Test new commits from branch feature-1 with long-last-branch -
gitector ..master -o html
– Test commits from current branch to master with html output
Add line gitector -id
to .git/COMMIT_EDITMSG
Run gitector
by default it will compare new commits against master.
You can find latest version to add to your workflow here
Add code below to your .gitlab-ci.yml
file
gitector:
stage: build
image: gitector/gitector
script:
- git fetch
- gitector
except:
- master
go build
./test.sh
- Missing package
- Run
go get ${missing package}
eg.go get github.com/stretchr/testify
- Run
./gitector --help