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-16 00:09:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-16 00:09:16 +0300
commite8c01bc6a16cc4aa934ac42cccb7b287527c93f0 (patch)
tree947fa135303b20480f8b3a173fa59a796c6d0d36 /app/helpers
parenta0213db466c75403a5a79f95af8a0a5cff13014c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/commits_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index 2f5bfc181cb..93776503dd6 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -134,6 +134,16 @@ module CommitsHelper
end
end
+ def cherry_pick_projects_data(project)
+ target_projects(project).map do |project|
+ {
+ id: project.id.to_s,
+ name: project.full_path,
+ refsUrl: refs_project_path(project)
+ }
+ end
+ end
+
protected
# Private: Returns a link to a person. If the person has a matching user and