fork接口
This commit is contained in:
parent
71728a15e4
commit
d8dc7786ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue