Method: Cnvrg::Dataset#compare_commit
- Defined in:
- lib/cnvrg/dataset.rb
#compare_commit(commit) ⇒ Object
846 847 848 849 850 851 852 853 854 |
# File 'lib/cnvrg/dataset.rb', line 846 def compare_commit(commit) if commit.nil? or commit.empty? commit = last_local_commit end response = Cnvrg::API.request("users/#{self.owner}/projects/#{self.slug}/commit/compare", 'POST', {current_commit: commit}) CLI.is_response_success(response, false) update_is_new_branch(response["result"]["new_branch"]) return response["result"]["new_branch"] end |