-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return project on successful fork #106
Comments
Unfortunately, the forking operation for a project is asynchronous and is completed in a background job. The request will return immediately. You'll need to enter a loop and check for the project with: public Project getProject(String namespace, String project) Until it returns successfully. |
@gmessner The API call for fork actually returns the forked project. |
The docs do not indicate that a Project instance is returned, however, that would be unusual. I have went ahead and added returning the Project, but have not yet added a test case for same. I'll get to this later today and do another release if it works. |
As far as I understand the documentation, the git fork operation is done in the background but the GitLab project is created directly. To check if the git fork operation finished the documentation recommends to check the projects As I see it, the Thanks for taking a second look at it 👍 I hope I'm right with my assessment. |
Returning the newly forked Project instance has been added and tested. Is available in release 4.7.3. |
In the current implementation nothing is returned from the
forkProject
method.The GitLab API return the new project (the forked project).
It would be good if the Java API would return a
Project
instance of the forked project (the returned project by the GitLab API).The text was updated successfully, but these errors were encountered: