Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
19032c03
Commit
19032c03
authored
Mar 19, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add canceled CI status
parent
6c1074e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+1
-1
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+6
-0
app/views/projects/merge_requests/show/_mr_ci.html.haml
app/views/projects/merge_requests/show/_mr_ci.html.haml
+6
-0
No files found.
CHANGELOG
View file @
19032c03
...
...
@@ -86,6 +86,7 @@ v 7.9.0 (unreleased)
- Ability to unsubscribe/subscribe to issue or merge request
- Delete deploy key when last connection to a project is destroyed.
- Fix invalid Atom feeds when using emoji, horizontal rules, or images (Christian Walther)
- Add canceled status for CI
v 7.8.4
- Fix issue_tracker_id substitution in custom issue trackers
...
...
app/assets/javascripts/merge_request.js.coffee
View file @
19032c03
...
...
@@ -110,7 +110,7 @@ class @MergeRequest
showCiState
:
(
state
)
->
$
(
'.ci_widget'
).
hide
()
allowed_states
=
[
"failed"
,
"running"
,
"pending"
,
"success"
]
allowed_states
=
[
"failed"
,
"
canceled"
,
"
running"
,
"pending"
,
"success"
]
if
state
in
allowed_states
$
(
'.ci_widget.ci-'
+
state
).
show
()
else
...
...
app/assets/stylesheets/pages/merge_requests.scss
View file @
19032c03
...
...
@@ -155,6 +155,12 @@
background-color
:
#FAF1F1
;
}
&
.ci-canceled
{
color
:
$gl-warning
;
border-color
:
$gl-danger
;
background-color
:
#FAF5F1
;
}
&
.ci-error
{
color
:
$gl-danger
;
border-color
:
$gl-danger
;
...
...
app/views/projects/merge_requests/show/_mr_ci.html.haml
View file @
19032c03
...
...
@@ -23,6 +23,12 @@
%i
.fa.fa-spinner
Checking for CI status for
#{
@merge_request
.
last_commit_short_sha
}
.ci_widget.ci-canceled
{
style:
"display:none"
}
%i
.fa.fa-times
%span
CI build canceled
for
#{
@merge_request
.
last_commit_short_sha
}
.
=
link_to
"View build page"
,
ci_build_details_path
(
@merge_request
),
:"data-no-turbolink"
=>
"data-no-turbolink"
.ci_widget.ci-error
{
style:
"display:none"
}
%i
.fa.fa-times
%span
Cannot connect to the CI server. Please check your settings and try again.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment