Method: FlashFlow::Merge::Release#check_branches
- Defined in:
- lib/flash_flow/merge/release.rb
#check_branches ⇒ Object
86 87 88 89 90 91 |
# File 'lib/flash_flow/merge/release.rb', line 86 def check_branches raise NothingToMergeError.new("Nothing to merge") if @release_branches.empty? requested_not_ready_branches = (@release_branches.map(&:ref) - shippable_branch_names) raise RuntimeError.new("The following branches are not ready to ship:\n#{requested_not_ready_branches.join("\n")}") unless requested_not_ready_branches.empty? end |