Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/views/shipit/stacks/_banners.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@
<p class="banner__text">
Continuous Delivery for this stack is currently paused because

<%= link_to_if stack.deployment_checks_passed?, 'the pre-deploy checks failed', stack_commit_checks_path(stack, sha: stack.next_commit_to_deploy.sha) %>.
<% next_commit = stack.next_commit_to_deploy %>
<%= if stack.deployment_checks_passed? && next_commit
link_to 'the pre-deploy checks failed', stack_commit_checks_path(stack, sha: next_commit.sha)
else
'the pre-deploy checks failed'
end %>.
You can either wait for them to pass, or trigger a deploy manually.
</p>
</div>
Expand Down