class GitHub::PullRequest::NotFoundError
Attributes
base[R]
head[R]
repo[R]
Public Class Methods
new(base, head, repo, pull_requests_json)
click to toggle source
Calls superclass method
# File lib/git-process/github_pull_request.rb, line 145 def initialize(base, head, repo, pull_requests_json) @base = base @head = head @repo = repo @pull_requests = pull_requests_json.map do |p| {:head => p[:head][:ref], :base => p[:base][:ref]} end msg = "Could not find a pull request for '#{head}' to be merged with '#{base}' on #{repo}." msg += "\n\nExisting Pull Requests:" msg = pull_requests.inject(msg) { |a, v| "#{a}\n #{v[:head]} -> #{v[:base]}" } super(msg) end
Public Instance Methods
pull_requests()
click to toggle source
# File lib/git-process/github_pull_request.rb, line 162 def pull_requests @pull_requests end