diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-05 10:54:23 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-11 12:29:14 +0300 |
commit | a2f61368f9d62cded366a3b8813969f66c4be4dd (patch) | |
tree | eff20026cfcb3218f5da1778fc2fb8dbb16505af /app/controllers/ci | |
parent | 9bcc9ec14cf4f120b8e16d5c232f82e1fc5e2cfd (diff) |
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.
Diffstat (limited to 'app/controllers/ci')
-rw-r--r-- | app/controllers/ci/projects_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb index 711c2847d5e..7838994433e 100644 --- a/app/controllers/ci/projects_controller.rb +++ b/app/controllers/ci/projects_controller.rb @@ -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 |