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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
dba5f3ae
Commit
dba5f3ae
authored
Jul 01, 2019
by
Alexandru Croitor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ProjectEntity to IssuableEntity
parent
630a8e80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/api/entities.rb
lib/api/entities.rb
+4
-4
lib/api/import_github.rb
lib/api/import_github.rb
+1
-1
No files found.
lib/api/entities.rb
View file @
dba5f3ae
...
...
@@ -491,7 +491,7 @@ module API
end
end
class
Project
Entity
<
Grape
::
Entity
class
Issuable
Entity
<
Grape
::
Entity
expose
:id
,
:iid
expose
(
:project_id
)
{
|
entity
|
entity
&
.
project
.
try
(
:id
)
}
expose
:title
,
:description
...
...
@@ -544,7 +544,7 @@ module API
end
end
class
IssueBasic
<
Project
Entity
class
IssueBasic
<
Issuable
Entity
expose
:closed_at
expose
:closed_by
,
using:
Entities
::
UserBasic
...
...
@@ -650,14 +650,14 @@ module API
end
end
class
MergeRequestSimple
<
Project
Entity
class
MergeRequestSimple
<
Issuable
Entity
expose
:title
expose
:web_url
do
|
merge_request
,
options
|
Gitlab
::
UrlBuilder
.
build
(
merge_request
)
end
end
class
MergeRequestBasic
<
Project
Entity
class
MergeRequestBasic
<
Issuable
Entity
expose
:merged_by
,
using:
Entities
::
UserBasic
do
|
merge_request
,
_options
|
merge_request
.
metrics
&
.
merged_by
end
...
...
lib/api/import_github.rb
View file @
dba5f3ae
...
...
@@ -28,7 +28,7 @@ module API
desc
'Import a GitHub project'
do
detail
'This feature was introduced in GitLab 11.3.4.'
success
Entities
::
ProjectEntity
success
::
ProjectEntity
end
params
do
requires
:personal_access_token
,
type:
String
,
desc:
'GitHub personal access token'
...
...
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