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
f562a477
Commit
f562a477
authored
Feb 02, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add associated project info to runner details output
parent
16b3368a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
doc/api/runners.md
doc/api/runners.md
+7
-0
lib/api/entities.rb
lib/api/entities.rb
+7
-0
No files found.
doc/api/runners.md
View file @
f562a477
...
@@ -116,6 +116,13 @@ Example response:
...
@@ -116,6 +116,13 @@ Example response:
"last_contact"
:
"2016-01-25T16:39:48.066Z"
,
"last_contact"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"name"
:
null
,
"platform"
:
null
,
"platform"
:
null
,
"projects"
:
[
{
"id"
:
1
,
"name"
:
"GitLab.org / GitLab Community Edition"
,
"path"
:
"gitlab-org/gitlab-ce"
}
],
"revision"
:
null
,
"revision"
:
null
,
"tag_list"
:
[
"tag_list"
:
[
"ruby"
,
"ruby"
,
...
...
lib/api/entities.rb
View file @
f562a477
...
@@ -369,6 +369,12 @@ module API
...
@@ -369,6 +369,12 @@ module API
expose
:id
,
:variables
expose
:id
,
:variables
end
end
class
RunnerProjectDetails
<
Grape
::
Entity
expose
:id
expose
:name_with_namespace
,
as: :name
expose
:path_with_namespace
,
as: :path
end
class
Runner
<
Grape
::
Entity
class
Runner
<
Grape
::
Entity
expose
:id
expose
:id
expose
:description
expose
:description
...
@@ -381,6 +387,7 @@ module API
...
@@ -381,6 +387,7 @@ module API
expose
:tag_list
expose
:tag_list
expose
:version
,
:revision
,
:platform
,
:architecture
expose
:version
,
:revision
,
:platform
,
:architecture
expose
:contacted_at
,
as: :last_contact
expose
:contacted_at
,
as: :last_contact
expose
:projects
,
with:
Entities
::
RunnerProjectDetails
end
end
class
Build
<
Grape
::
Entity
class
Build
<
Grape
::
Entity
...
...
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