fork_repository
Create a new copy of a GitLab project in your account or a specified namespace. Fork a repository to work independently while preserving the original project.
Instructions
Fork a project to your account or specified namespace. Use this to create a copy of an existing project in the current user's namespace or a permitted namespace; use search_repositories or get_project to inspect projects without copying them. The operation creates a new project, requires fork permission, and returns the forked project or a namespace/permission error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | Namespace to fork to (full path) | |
| project_id | Yes | Project ID or complete URL-encoded path to project |