Module: Shipit::GithubUrlHelper
- Included in:
- CommitSerializer, DeploySerializer, MergeRequestSerializer, PullRequestSerializer
- Defined in:
- app/helpers/shipit/github_url_helper.rb
Class Method Summary collapse
- .github_commit_range_url(stack, since_commit, until_commit) ⇒ Object
- .github_repo_url(owner, repo, *args) ⇒ Object
- .github_user_url(user, *args) ⇒ Object
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 |