fork接口

This commit is contained in:
huang 2015-11-11 10:25:24 +08:00
parent 71728a15e4
commit d8dc7786ca
2 changed files with 6 additions and 0 deletions

View File

View File

@ -222,6 +222,12 @@ class Gitlab::Client
delete("/projects/#{project}/hooks/#{id}")
end
# Forks a project into the user namespace of the authenticated user.
# @param [Integer] - The ID of the project to be forked
def fork(id)
post("/projects/fork/#{id}")
end
# Mark this project as forked from the other
#
# @example