Module: Gitlab::Ci::Status::External::Common

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

Instance Method Summary collapse

Instance Method Details

#details_pathObject


17
18
19
# File 'lib/gitlab/ci/status/external/common.rb', line 17

def details_path
  subject.target_url
end

#has_action?Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/gitlab/ci/status/external/common.rb', line 21

def has_action?
  false
end

#has_details?Boolean

Returns:

  • (Boolean)

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

def has_details?
  subject.target_url.present? &&
    can?(user, :read_commit_status, subject)
end

#labelObject


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

def label
  subject.description.presence || super
end