Set project name on fork (API)
This feature request is about the GitLab API (not the UI).
If I want to fork a project with a specific name then I need to fork the project first, then retrieve the created project and then update it's name. This is very inconvenient and also error prone since I could create two forks with the same name and then it's not clear which one to choose for the naming.
We have an scenario where we use existing projects in one namespace as templates and fork one project for one person who wants to do this task into a new namespace with a new name, url, ... and then add this person as member so he can work on the task and we can revoke his membership or permissions when he is finished.
Proposal
Add an additional name
parameter to set a name for the new project fork.
{
"id": "4",
- "namespace": "james"
+ "namespace": "james",
+ "name": "foo"
}
At the moment there are the following attributes:
- id: The ID or URL-encoded path of the project
- namespace: The ID or path of the namespace that the project will be forked to
I suggest adding a new optional parameter:
- name: The name for the forked project