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:
parent
9bcc9ec14c
commit
a2f61368f9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue