Skip to content

fix: fallback_pr_lookup boolean check in Fastfile - #6672

Merged
ajpallares merged 1 commit into
mainfrom
pallares/fix-fallback-pr-lookup-boolean-check
Apr 23, 2026
Merged

fix: fallback_pr_lookup boolean check in Fastfile#6672
ajpallares merged 1 commit into
mainfrom
pallares/fix-fallback-pr-lookup-boolean-check

Conversation

@ajpallares

@ajpallares ajpallares commented Apr 23, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #6669. Fastlane's CLI handler coerces true/false args into Ruby booleans before the lane sees them, so options[:fallback_pr_lookup] == 'true' is always false and the fallback was silently disabled in CI. Compare against the Ruby boolean instead.

Test plan

  • Re-run the bump workflow with bump_with_fallback_pr_lookup: true and confirm the fallback engages.

Note

Low Risk
Low risk: a small Fastfile change that only affects how the fallback_pr_lookup lane option is interpreted, with no production runtime impact outside release automation/CI.

Overview
Fixes Fastlane lane option handling so fallback_pr_lookup is enabled when the CLI passes a Ruby boolean, updating both bump and automatic_bump to compare against true instead of the string 'true'.

Reviewed by Cursor Bugbot for commit 74762ba. Bugbot is set up for automated code reviews on this repo. Configure here.

Fastlane's CLI handler (Fastlane::CommandLineHandler.convert_value)
already coerces 'true' / 'false' CLI args into Ruby booleans before the
lane sees them, so `options[:fallback_pr_lookup]` is the Ruby boolean
`true`, not the string `"true"`. That made `== 'true'` always evaluate
to false and silently disabled the fallback in CI even when
`bump_with_fallback_pr_lookup: true` was requested.

Compare against the actual Ruby boolean instead. `nil == true` is also
false, so the "param not passed" case keeps defaulting to off.

Made-with: Cursor
@ajpallares
ajpallares requested a review from a team April 23, 2026 07:27
@ajpallares
ajpallares marked this pull request as ready for review April 23, 2026 07:29
@ajpallares
ajpallares requested a review from a team as a code owner April 23, 2026 07:29
@ajpallares
ajpallares enabled auto-merge (squash) April 23, 2026 07:37
@ajpallares
ajpallares merged commit 5638511 into main Apr 23, 2026
16 of 18 checks passed
@ajpallares
ajpallares deleted the pallares/fix-fallback-pr-lookup-boolean-check branch April 23, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants