summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-06-14 07:35:27 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-14 07:35:27 +0000
commitda66c90b0f154452d7fe7ea9a6d296466cb7f223 (patch)
treef85deab1b2ad3ab59929193b80d2e343228cc0ab /lib
parent0037cf634dbcc8045fba9cbc28133cfde07dc97c (diff)
parent25b99a5b3beecb7251fef9097c44afd1f82f9f57 (diff)
downloadgitlab-ce-da66c90b0f154452d7fe7ea9a6d296466cb7f223.tar.gz
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)