Module: Shipit::GithubUrlHelper

Included in:
CommitSerializer, DeploySerializer, MergeRequestSerializer, PullRequestSerializer
Defined in:
app/helpers/shipit/github_url_helper.rb

Class Method Summary collapse

Class Method Details

.github_commit_range_url(stack, since_commit, until_commit) ⇒ Object



20
21
22
# File 'app/helpers/shipit/github_url_helper.rb', line 20

def github_commit_range_url(stack, since_commit, until_commit)
  github_repo_url(stack.repo_owner, stack.repo_name, 'compare', "#{since_commit.sha}...#{until_commit.sha}")
end

.github_repo_url(owner, repo, *args) ⇒ Object



36
37
38
# File 'app/helpers/shipit/github_url_helper.rb', line 36

def github_repo_url(owner, repo, *args)
  github_user_url(owner, repo, *args)
end

.github_user_url(user, *args) ⇒ Object



25
26
27
# File 'app/helpers/shipit/github_url_helper.rb', line 25

def github_user_url(user, *args)
  Shipit.github.url(user, *args)
end