From cff037fd25a8f94af0ccdc179bb7171411dc1369 Mon Sep 17 00:00:00 2001 From: Mark Fletcher Date: Tue, 6 Jun 2017 18:28:36 +0800 Subject: [PATCH] Confirm Project forking behaviour via the API * It's unclear that the forking operation can still be ongoing * `import_status` is available in Project Entity to determine status --- ...-and-configuring-project-via-api-works-very-unreliable.yml | 4 ++++ doc/api/projects.md | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/unreleased/28607-forking-and-configuring-project-via-api-works-very-unreliable.yml diff --git a/changelogs/unreleased/28607-forking-and-configuring-project-via-api-works-very-unreliable.yml b/changelogs/unreleased/28607-forking-and-configuring-project-via-api-works-very-unreliable.yml new file mode 100644 index 00000000000..9cf8d745f92 --- /dev/null +++ b/changelogs/unreleased/28607-forking-and-configuring-project-via-api-works-very-unreliable.yml @@ -0,0 +1,4 @@ +--- +title: Confirm Project forking behaviour via the API +merge_request: +author: diff --git a/doc/api/projects.md b/doc/api/projects.md index 70cad8a6025..19dd795b337 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -551,6 +551,8 @@ Parameters: Forks a project into the user namespace of the authenticated user or the one provided. +The forking operation for a project is asynchronous and is completed in a background job. The request will return immediately. To determine whether the fork of the project has completed, query the `import_status` for the new project. + ``` POST /projects/:id/fork ```