Allow selecting multiple commits to merge during PR creation (commit picker option in exciting UI) #180356
Replies: 4 comments 3 replies
-
|
Allowing selective commits in a PR could easily break the branch if a commit depends on earlier changes that aren’t included. This could lead to subtle bugs or CI/CD failures, making the workflow riskier than just merging the full branch. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the suggestion! Selectively choosing commits during PR creation isn’t supported in GitHub’s UI today PRs always represent the full diff between the source and target branches. For now, the recommended workflow is to create a temporary branch and cherry-pick only the commits you want included, then open the PR from that branch. Your feature request makes sense for teams working with long-running branches, and I’ve passed this feedback along to the team. While we can’t promise timelines, we’re always evaluating improvements to PR workflows, and this use case is helpful. Thanks for taking the time to share it! |
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Currently, GitHub includes all commits that differ between branches when creating a pull request. This can be inconvenient for teams working with long-running branches (e.g., uat, release, develop) who only want to merge specific commits. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Allow selecting multiple commits to merge during PR creation (commit picker option in exiting UI)
Currently, GitHub automatically includes all commits that differ between branches when creating a pull request. This is inconvenient when teams maintain long-running branches (e.g., uat, release, develop) and want to merge only specific commits.
Proposed solution:
Provide a commit selection UI during PR creation, allowing users to pick which commits should be included.
Why it’s useful:
• Avoid noise in release branches
• Easier hotfix workflows
• Prevent accidental merging of incomplete features
• Faster cherry-pick workflows without CLI
• More control for CI/CD environments
Alternatives:
• Manual cherry-picking (slow)
• Creating temporary branches
Impact:
Large teams working with multiple environments (dev/uat/prod) will save time and reduce merge risk.
Beta Was this translation helpful? Give feedback.
All reactions