Method: LabClient::Commits#revert
- Defined in:
- lib/labclient/commits/revert.rb
#revert(project_id, commit_id, branch_name) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/labclient/commits/revert.rb', line 32 def revert(project_id, commit_id, branch_name) project_id = format_id(project_id) commit_id = format_id(commit_id) branch_name = format_id(branch_name) client.request(:post, "projects/#{project_id}/repository/commits/#{commit_id}/revert", klass: Commit, body: { branch: branch_name }) end |