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
1126fd04
Commit
1126fd04
authored
Nov 28, 2017
by
Kamil Trzciński
Committed by
Winnie Hellmann
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cherry pick lib/api/entities.rb from
763ea26d
parent
3b971cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
entities.rb
lib/api/entities.rb
+19
-7
No files found.
lib/api/entities.rb
View file @
1126fd04
...
...
@@ -80,16 +80,21 @@ module API
expose
:group_access
,
as: :group_access_level
end
class
BasicProjectDetails
<
Grape
::
Entity
expose
:id
,
:description
,
:default_branch
,
:tag_list
expose
:ssh_url_to_repo
,
:http_url_to_repo
,
:web_url
class
ProjectIdentity
<
Grape
::
Entity
expose
:id
,
:description
expose
:name
,
:name_with_namespace
expose
:path
,
:path_with_namespace
expose
:created_at
end
class
BasicProjectDetails
<
ProjectIdentity
expose
:default_branch
,
:tag_list
expose
:ssh_url_to_repo
,
:http_url_to_repo
,
:web_url
expose
:avatar_url
do
|
project
,
options
|
project
.
avatar_url
(
only_path:
false
)
end
expose
:star_count
,
:forks_count
expose
:
created_at
,
:
last_activity_at
expose
:last_activity_at
end
class
Project
<
BasicProjectDetails
...
...
@@ -833,17 +838,24 @@ module API
expose
:id
,
:sha
,
:ref
,
:status
end
class
Job
<
Grape
::
Entity
class
Job
Basic
<
Grape
::
Entity
expose
:id
,
:status
,
:stage
,
:name
,
:ref
,
:tag
,
:coverage
expose
:created_at
,
:started_at
,
:finished_at
expose
:duration
expose
:user
,
with:
User
expose
:artifacts_file
,
using:
JobArtifactFile
,
if:
->
(
job
,
opts
)
{
job
.
artifacts?
}
expose
:commit
,
with:
Commit
expose
:runner
,
with:
Runner
expose
:pipeline
,
with:
PipelineBasic
end
class
Job
<
JobBasic
expose
:artifacts_file
,
using:
JobArtifactFile
,
if:
->
(
job
,
opts
)
{
job
.
artifacts?
}
expose
:runner
,
with:
Runner
end
class
JobBasicWithProject
<
JobBasic
expose
:project
,
with:
ProjectIdentity
end
class
Trigger
<
Grape
::
Entity
expose
:id
expose
:token
,
:description
...
...
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