Creates merge request on Gitlab for you
Download it, add executable perms and place into PATH:
# Place it into ~/.bin
mkdir ~/.bin
curl https://gist.githubusercontent.com/ColCh/35c495786e25e33976706016eed7f200/raw/gitlab-merge-request > ~/.bin/gitlab-merge-request
chmod +x ~/.bin/gitlab-merge-request
Then install some gems for gitlab:
sudo gem install git gitlab
Then define environment variables for your Project(I use autoenv with zsh):
# Gitlab api endpoint
export GITLAB_API_ENDPOINT="https://gitlab.com/api/v3"
# Get it in https://gitlab.com/profile/account
export GITLAB_API_PRIVATE_TOKEN="PLACE_IT_HERE"
# Get it from https://gitlab.com/api/v3/projects/?private_token=YOUR_PROVATE_TOKEN
export GITLAB_PROJECT_ID="1397044"
Push your branch on remote first:
git push
Then
gitlab-merge-request
Yes! It will prompt you for Merge Request title.
Added pdf doc.