Sha256: 894e6b9948e36914770f71fb1746b26cacfead1fbca1b64e55b05681c23c5f40
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
require 'rest_client' require 'json' module Socialcast module Github class << self def create_pull_request(username, password, branch) response = RestClient.post "https://#{username}:#{password}@api.github.com/repos/socialcast/socialcast/pulls", {:title => branch, :base => 'master', :head => branch}.to_json, :accept => :json, :content_type => :json data = JSON.parse response.body url = data['html_url'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialcast-git-extensions-2.2.2 | lib/socialcast-git-extensions/github.rb |