diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-08-21 13:03:32 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-08-21 13:03:32 +0300 |
commit | 5dac2937945cd3099ddf83ca7771b8f7ec3efac7 (patch) | |
tree | 73ccf7f50631472788ec672290324eefc60935a9 /doc/api | |
parent | c0dcf8ce3c1e3d3ee2cb0e73eee615060a864714 (diff) | |
parent | f4f321b9023d5aba76541f442fe1061d70186f27 (diff) |
Merge branch 'tc-api-fork-owners' into 'master'
Allow project owners to set up forking relation through API
Closes #40550
See merge request gitlab-org/gitlab-ce!18104
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/projects.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index bda4164ee92..0936ff52dae 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -1413,12 +1413,17 @@ DELETE /projects/:id/hooks/:hook_id Note the JSON response differs if the hook is available or not. If the project hook is available before it is returned in the JSON response or an empty response is returned. -## Admin fork relation +## Fork relationship -Allows modification of the forked relationship between existing projects. Available only for admins. +Allows modification of the forked relationship between existing projects. Available only for project owners and admins. ### Create a forked from/to relation between existing projects +CAUTION: **Warning:** +This will destroy the LFS objects stored in the fork. +So to retain the LFS objects, make sure you've pulled them **before** creating the fork relation, +and push them again **after** creating the fork relation. + ``` POST /projects/:id/fork/:forked_from_id ``` |