From 9ad3a9cefe8e7dd592cd11b743dc2c45cc414363 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 20 Feb 2022 17:10:44 +0000 Subject: [PATCH] dev-cmd/bump: Tell the user why we didn't bump a package Co-authored-by: Nanda H Krishna --- Library/Homebrew/dev-cmd/bump.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index b3cbd5e9b6..2269dc1e6f 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -269,6 +269,14 @@ module Homebrew EOS return unless args.open_pr? + + if repology_latest > current_version && + repology_latest > livecheck_latest && + livecheck_strategy == "GithubLatest" + puts "#{title_name} was not bumped to the Repology version because that " \ + "version is not the latest release on GitHub." + end + return unless new_version return if pull_requests