Merge pull request #16767 from cho-m/bump-sync-msg-all-latest
dev-cmd/bump: hide version syncing when empty list
This commit is contained in:
		
						commit
						0604b5e9a8
					
				@ -472,11 +472,14 @@ module Homebrew
 | 
				
			|||||||
    if formula_or_cask.is_a?(Formula)
 | 
					    if formula_or_cask.is_a?(Formula)
 | 
				
			||||||
      require "formula_auditor"
 | 
					      require "formula_auditor"
 | 
				
			||||||
      auditor = FormulaAuditor.new(formula_or_cask)
 | 
					      auditor = FormulaAuditor.new(formula_or_cask)
 | 
				
			||||||
      puts <<~EOS if auditor.synced_with_other_formulae?
 | 
					      if auditor.synced_with_other_formulae?
 | 
				
			||||||
 | 
					        outdated_synced_formulae = synced_with(auditor, formula_or_cask, new_version.general)
 | 
				
			||||||
 | 
					        puts <<~EOS if outdated_synced_formulae.present?
 | 
				
			||||||
          Version syncing:          #{title_name} version should be kept in sync with
 | 
					          Version syncing:          #{title_name} version should be kept in sync with
 | 
				
			||||||
                                  #{synced_with(auditor, formula_or_cask, new_version.general).join(", ")}.
 | 
					                                    #{outdated_synced_formulae.join(", ")}.
 | 
				
			||||||
        EOS
 | 
					        EOS
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
    puts <<~EOS unless args.no_pull_requests?
 | 
					    puts <<~EOS unless args.no_pull_requests?
 | 
				
			||||||
      Open pull requests:       #{open_pull_requests || "none"}
 | 
					      Open pull requests:       #{open_pull_requests || "none"}
 | 
				
			||||||
      Closed pull requests:     #{closed_pull_requests || "none"}
 | 
					      Closed pull requests:     #{closed_pull_requests || "none"}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user