Welcome to mirror list, hosted at ThFree Co, Russian Federation.

builds_helper.rb « ci « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d6e785d951269dea57c34efbf5f5bb3b36ae551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Ci
  module BuildsHelper
    def build_ref_link build
      gitlab_ref_link build.project, build.ref
    end

    def build_compare_link build
      gitlab_compare_link build.project, build.commit.short_before_sha, build.short_sha
    end

    def build_commit_link build
      gitlab_commit_link build.project, build.short_sha
    end

    def build_url(build)
      ci_project_build_url(build.project, build)
    end
  end
end