Module: Gitlab::Ci::Status::Bridge::Common

Defined in:
lib/gitlab/ci/status/bridge/common.rb

Instance Method Summary collapse

Instance Method Details

#details_pathObject


16
17
18
19
20
21
22
23
24
# File 'lib/gitlab/ci/status/bridge/common.rb', line 16

def details_path
  return unless can?(user, :read_pipeline, downstream_pipeline)

  if Feature.enabled?(:ci_retry_downstream_pipeline, subject.project)
    project_job_path(subject.project, subject)
  else
    project_pipeline_path(downstream_project, downstream_pipeline)
  end
end

#has_action?Boolean

Returns:

  • (Boolean)

26
27
28
# File 'lib/gitlab/ci/status/bridge/common.rb', line 26

def has_action?
  false
end

#has_details?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/gitlab/ci/status/bridge/common.rb', line 12

def has_details?
  !!details_path
end

#labelObject


8
9
10
# File 'lib/gitlab/ci/status/bridge/common.rb', line 8

def label
  subject.description
end