class Vpr::Services::GitHub

Public Class Methods

branch_url() click to toggle source
# File lib/vpr/services/github.rb, line 22
def self.branch_url
  "#{GitParser.repo_url}/tree/#{GitParser.current_branch}"
end
branches_url() click to toggle source
# File lib/vpr/services/github.rb, line 18
def self.branches_url
  "#{GitParser.repo_url}/branches"
end
commit_url(commit) click to toggle source
# File lib/vpr/services/github.rb, line 35
def self.commit_url(commit)
  "#{GitParser.repo_url}/commit/#{commit}"
end
home_url() click to toggle source
# File lib/vpr/services/github.rb, line 6
def self.home_url
  GitParser.repo_url
end
issues_url() click to toggle source
# File lib/vpr/services/github.rb, line 14
def self.issues_url
  "#{GitParser.repo_url}/issues"
end
pull_url(branch = nil) click to toggle source
# File lib/vpr/services/github.rb, line 26
def self.pull_url(branch = nil)
  branch ||= GitParser.current_branch
  base_url = "#{GitParser.repo_url}/pull"

  base_url.concat("/new") if branch.match?(/\d+\/.+/)

  "#{base_url}/#{branch}"
end
pulls_url() click to toggle source
# File lib/vpr/services/github.rb, line 10
def self.pulls_url
  "#{GitParser.repo_url}/pulls"
end
search_url(commit) click to toggle source
# File lib/vpr/services/github.rb, line 39
def self.search_url(commit)
  "#{GitParser.repo_url}/search?q=#{commit}"
end