Skip to content

[ci] updates release info command to support batch release#10958

Open
chunhtai wants to merge 4 commits intoflutter:mainfrom
chunhtai:release-info
Open

[ci] updates release info command to support batch release#10958
chunhtai wants to merge 4 commits intoflutter:mainfrom
chunhtai:release-info

Conversation

@chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Feb 3, 2026

As title

Pre-Review Checklist

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-assist bot 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

  1. 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

await for (final PackageEnumerationEntry entry in getPackagesToProcess()) {
if ((entry.package.parseCIConfig()?.isBatchRelease ?? false) &&
(entry.package.parsePubspec().version?.isPreRelease ?? false)) {
throw UsageException(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to myself, will need to add checks in #10859 to enforce this

@chunhtai chunhtai marked this pull request as ready for review February 4, 2026 17:57
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

1 participant