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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-06-14 10:35:27 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-06-19 17:40:42 +0300
commit188abebbe494b9b2f136749fc4fdc61c3d5370de (patch)
tree079c3524f9ef1d023242f1f3906fb07e97439c8a /lib
parent0e2dc6ab7e5c8d2bbb5fdd06585627e593f1a0ed (diff)
Merge branch 'fix-external-ci-services' into 'master'
Allow to access statuses for external CI services Closes #30714, #29369, and #15220 See merge request !11176
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/status/external/common.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/external/common.rb b/lib/gitlab/ci/status/external/common.rb
index 4969a350862..9307545b5b1 100644
--- a/lib/gitlab/ci/status/external/common.rb
+++ b/lib/gitlab/ci/status/external/common.rb
@@ -3,6 +3,10 @@ module Gitlab
module Status
module External
module Common
+ def label
+ subject.description
+ end
+
def has_details?
subject.target_url.present? &&
can?(user, :read_commit_status, subject)