Class: Vpr::Services::Bitbucket

Inherits:
Object
  • Object
show all
Defined in:
lib/vpr/services/bitbucket.rb

Class Method Summary collapse

Class Method Details

.branch_urlObject



22
23
24
# File 'lib/vpr/services/bitbucket.rb', line 22

def self.branch_url
  "#{GitParser.repo_url}/branch/#{GitParser.current_branch}"
end

.branches_urlObject



18
19
20
# File 'lib/vpr/services/bitbucket.rb', line 18

def self.branches_url
  "#{GitParser.repo_url}/branches"
end

.commit_url(commit) ⇒ Object



30
31
32
# File 'lib/vpr/services/bitbucket.rb', line 30

def self.commit_url(commit)
  "#{GitParser.repo_url}/commits/#{commit}"
end

.home_urlObject



6
7
8
# File 'lib/vpr/services/bitbucket.rb', line 6

def self.home_url
  GitParser.repo_url
end

.issues_urlObject



14
15
16
# File 'lib/vpr/services/bitbucket.rb', line 14

def self.issues_url
  "#{GitParser.repo_url}/issues"
end

.pull_urlObject



26
27
28
# File 'lib/vpr/services/bitbucket.rb', line 26

def self.pull_url
  "#{GitParser.repo_url}/pull-requests/new?source=#{GitParser.current_branch}"
end

.pulls_urlObject



10
11
12
# File 'lib/vpr/services/bitbucket.rb', line 10

def self.pulls_url
  "#{GitParser.repo_url}/pull-requests"
end

.search_url(commit) ⇒ Object



34
35
36
# File 'lib/vpr/services/bitbucket.rb', line 34

def self.search_url(commit)
  "#{GitParser.repo_url}/commits/all?search=#{commit}"
end