Method: Gitlab::Client::Projects#make_forked_from

Defined in:
lib/gitlab/client/projects.rb

#make_forked_from(project, id) ⇒ Gitlab::ObjectifiedHash

Mark this project as forked from the other

Examples:

Gitlab.make_forked(42, 24)

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • id (Integer)

    The ID of the project it is forked from.

Returns:


322
323
324
# File 'lib/gitlab/client/projects.rb', line 322

def make_forked_from(project, id)
  post("/projects/#{url_encode project}/fork/#{id}")
end