lab
is a command line interface to Gitlab.
- Download the latest release for your platform.
- Make it executable, e.g.
chmod +x lab_linux_amd64
- Put it somewhere on your path, e.g.
mv lab_linux_amd64 /usr/local/bin/lab
$ go get -u github.com/joshbohde/lab
$ go install github.com/joshbohde/lab/cmd/lab
Will configure access tokens for the current project, if none exist.
$ lab auth
This will open your browser to your Gitlab access tokens page, for either https://gitlab.com, or your self-hosted instance. Create a new token with API scope, and paste it back into your terminal.
Opens an issue in the current project.
$ lab issue
This will open your editor so that you can fill in the title and description of the issue.
Flags are available for command line scripting. To see a full list of available flags, run lab issue --help
.
Opens a merge request from the current branch to the default branch.
$ lab merge-request
This will open your editor so that you can fill in the title and description of the merge request.
Flags are available for command line scripting. To see a full list of available flags, run lab merge-request --help
.