[ci] updates release info command to support batch release#10958
[ci] updates release info command to support batch release#10958chunhtai wants to merge 4 commits intoflutter:mainfrom
Conversation
| await for (final PackageEnumerationEntry entry in getPackagesToProcess()) { | ||
| if ((entry.package.parseCIConfig()?.isBatchRelease ?? false) && | ||
| (entry.package.parsePubspec().version?.isPreRelease ?? false)) { | ||
| throw UsageException( |
There was a problem hiding this comment.
note to myself, will need to add checks in #10859 to enforce this
There was a problem hiding this comment.
Code Review
This pull request modifies the update-release-info command to support batch releases. For packages configured for batch release, the command now creates a pending changelog YAML file in a pending_changelogs directory instead of directly updating the pubspec.yaml and CHANGELOG.md files. The implementation separates the logic for direct updates and batch release updates into distinct methods. A check has been added to prevent running the command on batch release packages with pre-release versions. New tests have been added to verify the batch release functionality. I have one suggestion to improve code readability.
As title
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3