Sha256: 0d34797632cd25e92ab69f58a9fd7fd297196559e7118eebb01e3c994ae06a00
Contents?: true
Size: 992 Bytes
Versions: 1
Compression:
Stored size: 992 Bytes
Contents
module Octokit class Client module Pulls def create_pull_request(repo, base, head, title, body, options={}) pull = { :base => base, :head => head, :title => title, :body => body, } post("repos/#{Repository.new(repo)}/pulls", options.merge({:pull => pull})) end def create_pull_request_for_issue(repo, base, head, issue, options={}) pull = { :base => base, :head => head, :issue => issue } post("repos/#{Repository.new(repo)}/pulls", options.merge({:pull => pull})) end def pull_requests(repo, state='open', options={}) get("repos/#{Repository.new(repo)}/pulls", options.merge({:state => state}), 3) end alias :pulls :pull_requests def pull_request(repo, number, options={}) get("repos/#{Repository.new(repo)}/pulls/#{number}", options) end alias :pull :pull_request end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-1.0.0 | lib/octokit/client/pulls.rb |