From 290b2ab01becf60d9eaf1094b620f1fb32fdccb3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 29 Mar 2021 09:09:15 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/api/v3/github.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/api/v3') diff --git a/lib/api/v3/github.rb b/lib/api/v3/github.rb index 7938339e1b1..29e4a79110f 100644 --- a/lib/api/v3/github.rb +++ b/lib/api/v3/github.rb @@ -197,16 +197,13 @@ 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 -- cgit v1.2.1