summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2019-02-18 19:47:29 +0530
committerBalasankar "Balu" C <balasankar@gitlab.com>2019-02-20 00:19:27 +0530
commit39f77ad9b46d78908531a303e8a237b40fd07e7e (patch)
treee150a5983595d0b415c6324e81fe7fd8bf8efeb7 /lib
parentab9f8785ebf5483e5d2cd02497b57fa05a47561e (diff)
downloadgitlab-ce-39f77ad9b46d78908531a303e8a237b40fd07e7e.tar.gz
Let users set name/path on project fork using API
Diffstat (limited to 'lib')
-rw-r--r--lib/api/projects.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 6a93ef9f3ad..bd5678f513f 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -258,6 +258,8 @@ module API
end
params do
optional :namespace, type: String, desc: 'The ID or name of the namespace that the project will be forked into'
+ optional :path, type: String, desc: 'The path that will be assigned to the fork'
+ optional :name, type: String, desc: 'The name that will be assigned to the fork'
end
post ':id/fork' do
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42284')