New `dt` tool: `merge-commit`
In order to make sure a cherry-picked commit is not garbage collected by Github, we perform a merge-commit following the instructions here: https://github.com/flutter/devtools/blob/master/tool/RELEASE_INSTRUCTIONS.md#5-create-the-merge-commit-in-the-flutterdevtools-repo
In some scenarios (e.g. https://github.com/flutter/devtools/pull/9722) this can lead to a diff with file changes.
It's more reliable to follow the steps here: https://github.com/dart-lang/sdk/blob/main/docs/Cherry-picks-to-a-release-channel.md#cherry-picking-a-commit-in-a-dependency
In addition, we can wrap those steps in a dt tool (e.g. merge-commit) to make it even easier.
Hey @elliette! I'd love to take a shot at this. I've already gone through both the release instructions (step 5) and the cherry-pick docs and have a good understanding of the merge commit process. My plan would be to automate the git fetch, branch creation, -sours merge, push, and PR creation via the gh CLI, then print clear instructions for the admin settings step. Does that scope sound right, or are there any edge cases I should keep in mind before I start?
Hi @crackedhandle. Thank you for offering to contribute to this issue. We are actively working on an effort to improve the development process / release process for DevTools, which will likely make this tool not needed. I'm going to remove the 'contributions welcome' issue for now, but feel free to look at other candidate issues to contribute to. Thanks!
Thanks for the update!