ci_default_git_depth allowed in create but will cause a 500 error
ci_default_git_depth
is listed in our API docs for edit
: https://docs.gitlab.com/ee/api/projects.html#create-project
However the way the API is implemented: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/api/helpers/projects_helpers.rb#L60 this parameter is allowed for create
and will cause a 500 error.
± curl --request POST \
--url http://192.168.1.118:3000/api/v4/projects \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'private-token: OMIT' \
--data '{"name": "foo",
"ci_default_git_depth": 5
}'; echo
{"message":"500 Internal Server Error"}
This parameter should not be allowed in create
calls.
Edited by Amy Troschinetz