KEMBAR78
bump: compare newer_than_upstream values to true by samford · Pull Request #20652 · Homebrew/brew · GitHub
Skip to content

Conversation

samford
Copy link
Member

@samford samford commented Sep 8, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

When Enumerable#all? is called without an argument, it should check whether values are truthy but it doesn't appear to work as expected for the newer_than_upstream hash. In this case, { general: false }.all? returns true when it seemingly should return false. This is preventing autobump from opening PRs for new versions, so I've updated related all? calls to use a block with an explicit comparison to true as a workaround to fix autobump in the immediate term.

If there's a better approach, do let me know and I'll open a follow-up PR but I wanted to get this fix merged quickly.

When `Enumerable#all?` is called without an argument, it should check
whether values are truthy but it doesn't appear to work as expected
for the `newer_than_upstream` hash. In this case,
`{ general: false }.all?` returns `true` when it seemingly should
return `false`. This is preventing autobump from opening PRs for new
versions, so I've updated related `all?` calls to use a block with an
explicit comparison to `true` as a workaround to fix autobump in the
immediate term.
@samford samford force-pushed the bump-use-explicit-true-comparison branch from 88a3dda to 2f82724 Compare September 8, 2025 17:00
@samford samford enabled auto-merge September 8, 2025 17:05
@samford samford added this pull request to the merge queue Sep 8, 2025
Merged via the queue into main with commit b54695d Sep 8, 2025
55 of 56 checks passed
@samford samford deleted the bump-use-explicit-true-comparison branch September 8, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants