Method: Gitlab::Client::Commits#revert_commit
- Defined in:
- lib/gitlab/client/commits.rb
#revert_commit(project, sha, branch, options = {}) ⇒ Gitlab::ObjectifiedHash
Reverts a commit in a given branch.
82 83 84 85 86 |
# File 'lib/gitlab/client/commits.rb', line 82 def revert_commit(project, sha, branch, = {}) [:branch] = branch post("/projects/#{url_encode project}/repository/commits/#{sha}/revert", body: ) end |