-
Notifications
You must be signed in to change notification settings - Fork 282
Fix release notes version bump using next_version param
#5185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -108,7 +108,8 @@ platform :android do | |||||
| ensure_git_status_clean | ||||||
| Fastlane::Helper::GitHelper.checkout_and_pull(DEFAULT_BRANCH) | ||||||
|
|
||||||
| # If a new version is passed, use it as source of truth from now on | ||||||
| # new_version: the release version being frozen (e.g. "8.9") | ||||||
| # new_beta_version: the first beta of that release (e.g. "8.9-rc-1"), written to version.properties | ||||||
| new_version = version || release_version_next | ||||||
| release_branch_name = "release/#{new_version}" | ||||||
| new_beta_version = beta_version_next(version_name: new_version) | ||||||
|
|
@@ -148,8 +149,10 @@ platform :android do | |||||
| release_notes_file_path: RELEASE_NOTES_SOURCE_PATH, | ||||||
| extracted_notes_file_path: EXTRACTED_RELEASE_NOTES_PATH | ||||||
| ) | ||||||
| # After the version file is bumped to new_beta_version (e.g. "8.9-rc-1"), | ||||||
| # release_version_next reads it and computes the next release (e.g. "8.10"). | ||||||
| android_update_release_notes( | ||||||
| new_version: new_version, | ||||||
| next_version: release_version_next, | ||||||
|
||||||
| next_version: release_version_next, | |
| version: release_version_next, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎗️ Reminder to update release-toolkit once a new version has been released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next_versionis being set torelease_version_next, which re-computes based on the currentversion.propertiesat the time this runs (after you've already bumped tonew_beta_version). This can yield the wrong value (e.g., 8.11) and it also ignores an explicitversion:passed into the lane, despite the earlier comment that it becomes the source of truth. Consider passing the already-computednew_version(or storing the pre-bump next version in a variable and reusing it here) so the release notes bump matches the intended target version.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new_versionis the version being frozen (e.g. "8.9"), and we need the section title to be the version after it ("8.10").