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
336affe9
Commit
336affe9
authored
Oct 02, 2018
by
Shinya Maeda
Committed by
Alessio Caiazza
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add scheduled status
parent
51a81776
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
lib/gitlab/ci/status/pipeline/blocked.rb
lib/gitlab/ci/status/pipeline/blocked.rb
+1
-1
lib/gitlab/ci/status/pipeline/factory.rb
lib/gitlab/ci/status/pipeline/factory.rb
+1
-0
lib/gitlab/ci/status/pipeline/scheduled.rb
lib/gitlab/ci/status/pipeline/scheduled.rb
+21
-0
No files found.
lib/gitlab/ci/status/pipeline/blocked.rb
View file @
336affe9
...
@@ -8,7 +8,7 @@ module Gitlab
...
@@ -8,7 +8,7 @@ module Gitlab
end
end
def
label
def
label
s_
(
'CiStatusLabel|waiting for manual action
or delayed job
'
)
s_
(
'CiStatusLabel|waiting for manual action'
)
end
end
def
self
.
matches?
(
pipeline
,
user
)
def
self
.
matches?
(
pipeline
,
user
)
...
...
lib/gitlab/ci/status/pipeline/factory.rb
View file @
336affe9
...
@@ -5,6 +5,7 @@ module Gitlab
...
@@ -5,6 +5,7 @@ module Gitlab
class
Factory
<
Status
::
Factory
class
Factory
<
Status
::
Factory
def
self
.
extended_statuses
def
self
.
extended_statuses
[[
Status
::
SuccessWarning
,
[[
Status
::
SuccessWarning
,
Status
::
Pipeline
::
Scheduled
,
Status
::
Pipeline
::
Blocked
]]
Status
::
Pipeline
::
Blocked
]]
end
end
...
...
lib/gitlab/ci/status/pipeline/scheduled.rb
0 → 100644
View file @
336affe9
module
Gitlab
module
Ci
module
Status
module
Pipeline
class
Scheduled
<
Status
::
Extended
def
text
s_
(
'CiStatusText|scheduled'
)
end
def
label
s_
(
'CiStatusLabel|waiting for delayed job'
)
end
def
self
.
matches?
(
pipeline
,
user
)
pipeline
.
scheduled?
end
end
end
end
end
end
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