diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-03-16 12:53:48 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-03-16 14:31:27 +0300 |
commit | 7d5b8993f47f02488cb37811719193d4ecb45e0a (patch) | |
tree | 7b63b3281729273c5ebec61dae064e47f87c6bb1 /app/helpers/ci_status_helper.rb | |
parent | 901e70fba1042acd19feeb278312365754e7d763 (diff) |
Build project cache key in a helper
Diffstat (limited to 'app/helpers/ci_status_helper.rb')
-rw-r--r-- | app/helpers/ci_status_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb index a91d19dc347..2de9e0de310 100644 --- a/app/helpers/ci_status_helper.rb +++ b/app/helpers/ci_status_helper.rb @@ -59,6 +59,10 @@ module CiStatusHelper custom_icon(icon_name) end + def pipeline_status_cache_key(pipeline_status) + "pipeline-status/#{pipeline_status.sha}-#{pipeline_status.status}" + end + def render_project_pipeline_status(pipeline_status, tooltip_placement: 'auto left') project = pipeline_status.project path = pipelines_namespace_project_commit_path( |