module Gitlab::Client::Commits
def cherry_pick_commit(project, sha, branch)
-
(Gitlab::ObjectifiedHash)
-
Parameters:
-
branch
(String
) -- The name of the branch -
sha
(String
) -- The commit hash or name of a repository branch or tag -
project
(Integer, String
) -- The ID or name of a project.
def cherry_pick_commit(project, sha, branch) post("/projects/#{url_encode project}/repository/commits/#{sha}/cherry_pick", body: { branch: branch }) end