Add deprecation warning for old CI status badge action

We keep this only for backwards compatibility with projects that have
been migrated from GitLab CI. New project badge will go elsewhere.
This commit is contained in:
Grzegorz Bizon 2016-02-05 08:54:23 +01:00
parent 9bcc9ec14c
commit a2f61368f9
1 changed files with 4 additions and 1 deletions

View File

@ -12,9 +12,12 @@ module Ci
# Project status badge
# Image with build status for sha or ref
#
# This action in DEPRECATED, this is here only for backwards compatibility
# with projects migrated from GitLab CI.
#
def badge
image = Ci::ImageForBuildService.new.execute(@project, params)
send_file image.path, filename: image.name, disposition: 'inline', type:"image/svg+xml"
end