# Gitlab merge request script Creates merge request on Gitlab for you # Installation Download it, add executable perms and place into PATH: ```sh # Place it into ~/.bin mkdir ~/.bin curl https://gist.github.com/ColCh/35c495786e25e33976706016eed7f200/raw/gitlab-merge-request > ~/.bin/gitlab-merge-request chmod +x ~/.bin/gitlab-merge-request ``` Then install some gems for gitlab: ```sh sudo gem install git gitlab ``` Then define environment variables for your Project(I use autoenv with zsh): ```sh # 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" ``` # Usage Push your branch on remote first: ```sh git push ``` Then ```sh gitlab-merge-request ``` Yes! It will prompt you for Merge Request title.