Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new helper script under tools/python/ to streamline generating release-branch cherry-pick command batches and accompanying PR-description notes, using GitHub CLI metadata and optional git-history checks to flag potential missing related commits.
Changes:
- Introduces
tools/python/cherry_pick.pyto query merged PRs by label viagh pr list, sort by merge time, and emit a.cmdfile ofgit cherry-pickcommands. - Generates
cherry_pick_pr_description.mdcontaining the set of PR numbers included in the cherry-pick batch. - Adds a “missing dependencies” heuristic that inspects git history for other commits touching the same files that aren’t in the cherry-pick set.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new Python script,
cherry_pick.py, to automate the cherry-picking process for release branches.Features
release:1.24.2) using theghCLI..cmdfile withgit cherry-pickcommands.cherry_pick_pr_description.md) suitable for the release PR description.Usage
Arguments
--label: Label to filter PRs (required).--output: Output path for the batch file (required).--repo: Target repository (default:microsoft/onnxruntime).--branch: Target branch to compare against for dependency checks (default:HEAD).Example Output