BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
af7d3836
Commit
af7d3836
authored
Sep 12, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
should show the status of the latest one
parent
6baf9971
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
commit.rb
app/models/commit.rb
+1
-1
commits_spec.rb
spec/requests/api/commits_spec.rb
+1
-1
No files found.
app/models/commit.rb
View file @
af7d3836
...
...
@@ -231,7 +231,7 @@ class Commit
def
status
return
@status
if
defined?
(
@status
)
@status
||=
pipelines
.
status
@status
||=
pipelines
.
order
(
:id
).
last
.
try
(
:status
)
end
def
revert_branch_name
...
...
spec/requests/api/commits_spec.rb
View file @
af7d3836
...
...
@@ -110,7 +110,7 @@ describe API::API, api: true do
get
api
(
"/projects/
#{
project
.
id
}
/repository/commits/
#{
project
.
repository
.
commit
.
id
}
"
,
user
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
[
'status'
]).
to
be_nil
expect
(
json_response
[
'status'
]).
to
eq
(
'created'
)
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