Module: StashCoreAPI::Compare
Overview
Interfaces with compare endpoints of Stash CoreAPI API
Instance Method Summary collapse
Instance Method Details
#compare_changes(from_commit, to_commit, from_repo: nil, limit: nil) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/stash_core_api/compare.rb', line 23 def compare_changes(from_commit, to_commit, from_repo: nil, limit: nil) endpoint = "/compare/changes?from=#{from_commit}&to=#{to_commit}" endpoint = "#{endpoint}&fromRepo=#{from_repo}" if from_repo endpoint = "#{endpoint}&limit=#{limit}" if limit perform_get(endpoint) end |