Git::Gitlab
Command line tool for Gitlab
Installation
Add this line to your application's Gemfile:
gem 'git-gitlab'
And then execute:
$ bundle
Or install it yourself as:
$ gem install git-gitlab
Usage
Set up
Config some setting
git config --global gitlab.url http://gitlab.example.com/
git config --global gitlab.token GITLAB_SECRET_TOKEN
git config gitlab.project NAMESPACE/PROJECT
if your remote repository is not origin
git config gitlab.remote REMOTE
Let' run and Confirm setting
git gitlab
Create Merge Request
git gitlab merge SOURCE_BRANCH TARGET_BRANCH --assign USER_NAME
Get Mergerequest list
git gitlab merge --list
Show Issue by ID
git gitlab issue ISSUE_ID
Code Review
git gitlab review MERGEREQUEST_ID
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request