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
e4d2f997
Commit
e4d2f997
authored
Feb 17, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `last_contact` to `contacted_at`
parent
7ea60c85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/api/runners.md
doc/api/runners.md
+2
-2
lib/api/entities.rb
lib/api/entities.rb
+1
-1
No files found.
doc/api/runners.md
View file @
e4d2f997
...
@@ -116,7 +116,7 @@ Example response:
...
@@ -116,7 +116,7 @@ Example response:
"description"
:
"test-1-20150125"
,
"description"
:
"test-1-20150125"
,
"id"
:
6
,
"id"
:
6
,
"is_shared"
:
false
,
"is_shared"
:
false
,
"
last_contac
t"
:
"2016-01-25T16:39:48.066Z"
,
"
contacted_a
t"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"name"
:
null
,
"platform"
:
null
,
"platform"
:
null
,
"projects"
:
[
"projects"
:
[
...
@@ -166,7 +166,7 @@ Example response:
...
@@ -166,7 +166,7 @@ Example response:
"description"
:
"test-1-20150125-test"
,
"description"
:
"test-1-20150125-test"
,
"id"
:
6
,
"id"
:
6
,
"is_shared"
:
false
,
"is_shared"
:
false
,
"
last_contac
t"
:
"2016-01-25T16:39:48.066Z"
,
"
contacted_a
t"
:
"2016-01-25T16:39:48.066Z"
,
"name"
:
null
,
"name"
:
null
,
"platform"
:
null
,
"platform"
:
null
,
"projects"
:
[
"projects"
:
[
...
...
lib/api/entities.rb
View file @
e4d2f997
...
@@ -380,7 +380,7 @@ module API
...
@@ -380,7 +380,7 @@ module API
class
RunnerDetails
<
Runner
class
RunnerDetails
<
Runner
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
expose
:token
,
if:
lambda
{
|
runner
,
options
|
options
[
:current_user
].
is_admin?
||
!
runner
.
is_shared?
}
expose
:token
,
if:
lambda
{
|
runner
,
options
|
options
[
:current_user
].
is_admin?
||
!
runner
.
is_shared?
}
expose
:projects
,
with:
Entities
::
ForkedFromProject
do
|
runner
,
options
|
expose
:projects
,
with:
Entities
::
ForkedFromProject
do
|
runner
,
options
|
if
options
[
:current_user
].
is_admin?
if
options
[
:current_user
].
is_admin?
...
...
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