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
d1ac00ae
Commit
d1ac00ae
authored
Feb 10, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify and fix output of delete and update of a runner
parent
24eed1c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
doc/api/runners.md
doc/api/runners.md
+8
-6
lib/api/runners.rb
lib/api/runners.rb
+2
-2
No files found.
doc/api/runners.md
View file @
d1ac00ae
...
...
@@ -167,6 +167,14 @@ 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"
}
],
"token"
:
"205086a8e3b9a2b818ffac9b89d102"
,
"revision"
:
null
,
"tag_list"
:
[
"ruby"
,
...
...
@@ -199,16 +207,10 @@ Example response:
```
json
{
"active"
:
true
,
"architecture"
:
null
,
"description"
:
"test-1-20150125-test"
,
"id"
:
6
,
"is_shared"
:
false
,
"last_contact"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"platform"
:
null
,
"revision"
:
null
,
"tag_list"
:
[],
"version"
:
null
}
```
...
...
lib/api/runners.rb
View file @
d1ac00ae
...
...
@@ -51,7 +51,7 @@ module API
attrs
=
attributes_for_keys
[
:description
,
:active
,
:tag_list
]
if
runner
.
update
(
attrs
)
present
runner
,
with:
Entities
::
RunnerDetails
present
runner
,
with:
Entities
::
RunnerDetails
,
current_user:
current_user
else
render_validation_error!
(
runner
)
end
...
...
@@ -68,7 +68,7 @@ module API
authenticate_delete_runner!
(
runner
)
runner
.
destroy!
present
runner
,
with:
Entities
::
Runner
Details
present
runner
,
with:
Entities
::
Runner
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