Skip to content

Commit

Permalink
dev-cmd/bump: Tell the user why we didn't bump a package
Browse files Browse the repository at this point in the history
- This wording might be a bit awkward, I'm open to suggestions for
  improvements!
  • Loading branch information
issyl0 committed Feb 20, 2022
1 parent 0a91c40 commit fece6d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Library/Homebrew/dev-cmd/bump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,15 @@ def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, a
EOS

return unless args.open_pr?
return unless new_version

unless new_version
puts <<~EOS
#{title_name} was not bumped because:
- it has no new versions
- its Repology version is not the latest release on GitHub.
EOS
return
end
return if pull_requests

system HOMEBREW_BREW_FILE, "bump-#{type}-pr", "--no-browse",
Expand Down

0 comments on commit fece6d8

Please sign in to comment.