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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-18 15:09:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-18 15:09:01 +0300
commit19d46f60a3699232458357111365e63a8c71f20d (patch)
treeaaa33bba4d167d4438b1e389be82d31fce9722ed /app/helpers
parent0da3ea537477cb1a39d3479d9debf67c29664fd3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/commits_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index 93776503dd6..42e4844cc8d 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -135,6 +135,8 @@ module CommitsHelper
end
def cherry_pick_projects_data(project)
+ return [] unless Feature.enabled?(:pick_into_project, project, default_enabled: :yaml)
+
target_projects(project).map do |project|
{
id: project.id.to_s,