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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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:
"last_contact"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"platform"
:
null
,
"projects"
:
[
{
"id"
:
1
,
"name"
:
"GitLab.org / GitLab Community Edition"
,
"path"
:
"gitlab-org/gitlab-ce"
}
],
"revision"
:
null
,
"tag_list"
:
[
"ruby"
,
...
...
lib/api/entities.rb
View file @
f562a477
...
...
@@ -369,6 +369,12 @@ module API
expose
:id
,
:variables
end
class
RunnerProjectDetails
<
Grape
::
Entity
expose
:id
expose
:name_with_namespace
,
as: :name
expose
:path_with_namespace
,
as: :path
end
class
Runner
<
Grape
::
Entity
expose
:id
expose
:description
...
...
@@ -381,6 +387,7 @@ module API
expose
:tag_list
expose
:version
,
:revision
,
:platform
,
:architecture
expose
:contacted_at
,
as: :last_contact
expose
:projects
,
with:
Entities
::
RunnerProjectDetails
end
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