Creates merge request on Gitlab for you
Download it, add executable perms and place into PATH:
# Place it into ~/.bin
mkdir ~/.bin| #!/usr/bin/env ruby | |
| require 'faraday' | |
| require 'json' | |
| require 'gitlab' | |
| module Redmine | |
| Host = nil | |
| APIKey = nil |
| #!/bin/bash | |
| BROWSER='google-chrome' | |
| #GITLAB_SECRET='' | |
| ENDPOINT='http://gitlab.activeby.net/api/v3' | |
| PROJECT='activebilling/core' | |
| #curl --header "PRIVATE-TOKEN: xxx" "http://gitlab.activeby.net/api/v3/projects/activebilling%2Fcore" | awk '{match($1,"[0-9]+",a)}END{print a[0]}' | |
| PROJECT_ID=177 | |
| ACTION="projects/$PROJECT_ID/merge_requests" | |
| CURRENT_BRANCH=`git branch | grep '^\*' | awk '{ print $2; }'` |
| // Forked from: | |
| //PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012 | |
| (function(host) { | |
| function Crawler() { | |
| this.visitedURLs = {}; | |
| }; | |
| Crawler.webpage = require('webpage'); |