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
Jérome Perrin
gitlab-ce
Commits
5f590a71
Commit
5f590a71
authored
8 years ago
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve readability in methods for detailed status
parent
a91a95b2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
app/models/ci/build.rb
app/models/ci/build.rb
+3
-1
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+3
-1
app/models/ci/stage.rb
app/models/ci/stage.rb
+3
-1
app/models/commit_status.rb
app/models/commit_status.rb
+3
-1
No files found.
app/models/ci/build.rb
View file @
5f590a71
...
...
@@ -101,7 +101,9 @@ module Ci
end
def
detailed_status
(
current_user
)
Gitlab
::
Ci
::
Status
::
Build
::
Factory
.
new
(
self
,
current_user
).
fabricate!
Gitlab
::
Ci
::
Status
::
Build
::
Factory
.
new
(
self
,
current_user
)
.
fabricate!
end
def
manual?
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/pipeline.rb
View file @
5f590a71
...
...
@@ -337,7 +337,9 @@ module Ci
end
def
detailed_status
(
current_user
)
Gitlab
::
Ci
::
Status
::
Pipeline
::
Factory
.
new
(
self
,
current_user
).
fabricate!
Gitlab
::
Ci
::
Status
::
Pipeline
::
Factory
.
new
(
self
,
current_user
)
.
fabricate!
end
private
...
...
This diff is collapsed.
Click to expand it.
app/models/ci/stage.rb
View file @
5f590a71
...
...
@@ -23,7 +23,9 @@ module Ci
end
def
detailed_status
(
current_user
)
Gitlab
::
Ci
::
Status
::
Stage
::
Factory
.
new
(
self
,
current_user
).
fabricate!
Gitlab
::
Ci
::
Status
::
Stage
::
Factory
.
new
(
self
,
current_user
)
.
fabricate!
end
def
statuses
...
...
This diff is collapsed.
Click to expand it.
app/models/commit_status.rb
View file @
5f590a71
...
...
@@ -133,6 +133,8 @@ class CommitStatus < ActiveRecord::Base
end
def
detailed_status
(
current_user
)
Gitlab
::
Ci
::
Status
::
Factory
.
new
(
self
,
current_user
).
fabricate!
Gitlab
::
Ci
::
Status
::
Factory
.
new
(
self
,
current_user
)
.
fabricate!
end
end
This diff is collapsed.
Click to expand it.
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