1.1.0 • Published 4 years ago
gitlabtimespend v1.1.0
GitlabTimeSpend
A simple command line tool to book time to gitlab issues.
Project status:
- Works on my machine GitBash (Windows)
- Works on another machine Powershell (Windows)
Usage
Install the package
npm i -g gitlabtimespendGet a gitlab token with api access.
You can find it at a url like this 'https://gitlab.com/-/profile/personal_access_tokens'.
Configure your token
$ spend token <your-token-here>for example
$ spend token asduhfdf234kjhdfConfigure your gitlab domain
$ spend domain <your-gitlab.domain>for example
$ spend domain gitlab.example.comBook your time
Switch to a directory where you have checked out an feature-branch. The branch name should look like this "20-this-is-my-feature".
And book your time with
$ spend <gitlab-time-unit-string>for example
$ spend 2h30msee https://docs.gitlab.com/ee/user/project/time_tracking.html#view-a-time-tracking-report