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
Léo-Paul Géneau
gitlab-ce
Commits
7319460c
Commit
7319460c
authored
Mar 08, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verbosify blocked pipeline status description
parent
cb19fd14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
app/helpers/ci_status_helper.rb
app/helpers/ci_status_helper.rb
+2
-0
lib/gitlab/ci/status/pipeline/blocked.rb
lib/gitlab/ci/status/pipeline/blocked.rb
+23
-0
lib/gitlab/ci/status/pipeline/factory.rb
lib/gitlab/ci/status/pipeline/factory.rb
+2
-1
No files found.
app/helpers/ci_status_helper.rb
View file @
7319460c
...
@@ -15,6 +15,8 @@ module CiStatusHelper
...
@@ -15,6 +15,8 @@ module CiStatusHelper
'passed'
'passed'
when
'success_with_warnings'
when
'success_with_warnings'
'passed with warnings'
'passed with warnings'
when
'manual'
'waiting for manual action'
else
else
status
status
end
end
...
...
lib/gitlab/ci/status/pipeline/blocked.rb
0 → 100644
View file @
7319460c
module
Gitlab
module
Ci
module
Status
module
Pipeline
class
Blocked
<
SimpleDelegator
include
Status
::
Extended
def
text
'blocked'
end
def
label
'waiting for manual action'
end
def
self
.
matches?
(
pipeline
,
user
)
pipeline
.
blocked?
end
end
end
end
end
end
lib/gitlab/ci/status/pipeline/factory.rb
View file @
7319460c
...
@@ -4,7 +4,8 @@ module Gitlab
...
@@ -4,7 +4,8 @@ module Gitlab
module
Pipeline
module
Pipeline
class
Factory
<
Status
::
Factory
class
Factory
<
Status
::
Factory
def
self
.
extended_statuses
def
self
.
extended_statuses
[
Status
::
SuccessWarning
]
[[
Status
::
SuccessWarning
,
Status
::
Pipeline
::
Blocked
]]
end
end
def
self
.
common_helpers
def
self
.
common_helpers
...
...
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