diff options
author | Douwe Maan <douwe@gitlab.com> | 2019-02-25 14:24:13 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-02-25 14:24:13 +0300 |
commit | 8cb236908f03cba6f6a1ad5660ce8fbdfa32a50d (patch) | |
tree | 9b4b4215780394c2b4c4f339b154250be6ae3eeb /lib | |
parent | e5c7027faffb75f1d2f7221fa11609741010d82f (diff) | |
parent | 99633a8fa387037697cb0faa04da40972dcc58cc (diff) |
Merge branch '40795-set-project-name-on-fork-api' into 'master'
Add ability to set project path and name on fork using API
Closes #40795
See merge request gitlab-org/gitlab-ce!25363
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/projects.rb | 2 |
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') |