Sha256: f9868cb57e17295de811bfd68b5ddd5cd9797fa9b82868ac4d979846a6051f87
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
module Octokit class Client module Pulls def create_pull_request(repo, options={}) post("pulls/#{Repository.new(repo)}", options)['pulls'] end def pull_requests(repo, state='open', options={}) get("pulls/#{Repository.new(repo)}/#{state}", options)['pulls'] end alias :pulls :pull_requests def pull_request(repo, number, options={}) get("pulls/#{Repository.new(repo)}/#{number}", options)['pulls'] end alias :pull :pull_request end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.4.1 | lib/octokit/client/pulls.rb |
octokit-0.4.0 | lib/octokit/client/pulls.rb |