Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/github.rb')
-rw-r--r--lib/api/v3/github.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/v3/github.rb b/lib/api/v3/github.rb
index 327335aec2d..2d25e76626a 100644
--- a/lib/api/v3/github.rb
+++ b/lib/api/v3/github.rb
@@ -194,13 +194,16 @@ module API
# Self-hosted Jira (tested on 7.11.1) requests this endpoint right
# after fetching branches.
+ # rubocop: disable CodeReuse/ActiveRecord
get ':namespace/:project/events' do
user_project = find_project_with_access(params)
merge_requests = authorized_merge_requests_for_project(user_project)
+ merge_requests = merge_requests.preload(:author, :assignees, :metrics, source_project: :namespace, target_project: :namespace)
present paginate(merge_requests), with: ::API::Github::Entities::PullRequestEvent
end
+ # rubocop: enable CodeReuse/ActiveRecord
params do
use :project_full_path