summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-02 15:35:12 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-06-02 15:35:12 +0000
commit69b1a61509066df4668775f0070fe52f0b0adfb6 (patch)
treec344d3d4412b61b4e3ddef45397b3bca223c7b1d /lib
parentd2f149539e53c9cd76fa439944d3d5ad2ff9c64c (diff)
parent578adc9bc603e743d85cc65ed0d8aa3201ccc619 (diff)
downloadgitlab-ce-69b1a61509066df4668775f0070fe52f0b0adfb6.tar.gz
Merge branch '33242-create-project-for-user-api-ignores-path-parameter' into 'master'
Add optional path parameter and fix tests Closes #33242 See merge request !11868
Diffstat (limited to 'lib')
-rw-r--r--lib/api/projects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index d00d4fe1737..17008aa6d0f 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -129,6 +129,7 @@ module API
params do
requires :name, type: String, desc: 'The name of the project'
requires :user_id, type: Integer, desc: 'The ID of a user'
+ optional :path, type: String, desc: 'The path of the repository'
optional :default_branch, type: String, desc: 'The default branch of the project'
use :optional_params
use :create_params