Method: Gitlab::Client::Commits#cherry_pick_commit
- Defined in:
- lib/gitlab/client/commits.rb
#cherry_pick_commit(project, sha, branch, options = {}) ⇒ Gitlab::ObjectifiedHash
Cherry picks a commit to a given branch.
65 66 67 68 69 |
# File 'lib/gitlab/client/commits.rb', line 65 def cherry_pick_commit(project, sha, branch, = {}) [:branch] = branch post("/projects/#{url_encode project}/repository/commits/#{sha}/cherry_pick", body: ) end |