summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_related_branches.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/issues/_related_branches.html.haml')
-rw-r--r--app/views/projects/issues/_related_branches.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/issues/_related_branches.html.haml b/app/views/projects/issues/_related_branches.html.haml
index bdfa0c7009e..c6fc499a7b8 100644
--- a/app/views/projects/issues/_related_branches.html.haml
+++ b/app/views/projects/issues/_related_branches.html.haml
@@ -5,10 +5,10 @@
- @related_branches.each do |branch|
%li
- sha = @project.repository.find_branch(branch).target
- - ci_commit = @project.ci_commit(sha, branch) if sha
- - if ci_commit
+ - pipeline = @project.pipeline(sha, branch) if sha
+ - if pipeline
%span.related-branch-ci-status
- = render_ci_status(ci_commit)
+ = render_pipeline_status(pipeline)
%span.related-branch-info
%strong
= link_to namespace_project_compare_path(@project.namespace, @project, from: @project.default_branch, to: branch), class: "label-branch" do