Skip to content
Snippets Groups Projects
Commit af93d447 authored by Valery Sizov's avatar Valery Sizov
Browse files

Explicit error when commit not found in the GitLab CI

parent 88343897
Branches
Tags
1 merge request!871Explicit error when commit not found in the GitLab CI
Loading
Loading
@@ -36,11 +36,11 @@ class @MergeRequestWidget
 
showCiState: (state) ->
$('.ci_widget').hide()
allowed_states = ["failed", "canceled", "running", "pending", "success"]
allowed_states = ["failed", "canceled", "running", "pending", "success", "not_found"]
if state in allowed_states
$('.ci_widget.ci-' + state).show()
switch state
when "failed", "canceled"
when "failed", "canceled", "not_found"
@setMergeButtonClass('btn-danger')
when "running", "pending"
@setMergeButtonClass('btn-warning')
Loading
Loading
Loading
Loading
@@ -23,6 +23,12 @@
= icon("spinner spin")
Checking for CI status for #{@merge_request.last_commit_short_sha}
 
.ci_widget.ci-not_found{style: "display:none"}
= icon("times")
%span Can not find commit in the CI server
for #{@merge_request.last_commit_short_sha}.
.ci_widget.ci-canceled{style: "display:none"}
= icon("times")
%span CI build canceled
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment