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
7e916cc7
Commit
7e916cc7
authored
Nov 28, 2019
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve variable name
parent
21695d7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/lib/api/v3/github.rb
ee/lib/api/v3/github.rb
+3
-3
No files found.
ee/lib/api/v3/github.rb
View file @
7e916cc7
...
...
@@ -78,7 +78,7 @@ module API
MergeRequestsFinder
.
new
(
current_user
,
authorized_only:
true
).
execute
end
def
authorized_merge_requests_for
(
project
)
def
authorized_merge_requests_for
_project
(
project
)
MergeRequestsFinder
.
new
(
current_user
,
authorized_only:
true
,
project_id:
project
.
id
).
execute
end
...
...
@@ -158,7 +158,7 @@ module API
get
':namespace/:project/pulls'
do
user_project
=
find_project_with_access
(
params
)
merge_requests
=
authorized_merge_requests_for
(
user_project
)
merge_requests
=
authorized_merge_requests_for
_project
(
user_project
)
present
paginate
(
merge_requests
),
with:
::
API
::
Github
::
Entities
::
PullRequest
end
...
...
@@ -199,7 +199,7 @@ module API
get
':namespace/:project/events'
do
user_project
=
find_project_with_access
(
params
)
merge_requests
=
authorized_merge_requests_for
(
user_project
)
merge_requests
=
authorized_merge_requests_for
_project
(
user_project
)
present
paginate
(
merge_requests
),
with:
::
API
::
Github
::
Entities
::
PullRequestEvent
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