debian-mirror-gitlab/lib/gitlab/ci/status/external/common.rb
2019-03-02 22:35:43 +05:30

28 lines
515 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Status
module External
module Common
def label
subject.description.presence || super
end
def has_details?
subject.target_url.present? &&
can?(user, :read_commit_status, subject)
end
def details_path
subject.target_url
end
def has_action?
false
end
end
end
end
end
end