Option to add PR number to "Rebase and Merge" commits #62118
Replies: 2 comments 1 reply
-
Product Feedback: Thank you for providing valuable feedback regarding the "Rebase and Merge" feature. We understand the importance of maintaining clear traceability of commits back to their respective pull requests, and your suggestion to automatically add a PR reference to the commits is a great idea to address this concern. Having the ability to trace commits back to the PR would greatly enhance project organization and make it easier for contributors and maintainers to understand the history and context of each commit. This feature could prove to be particularly beneficial for projects with a significant number of pull requests and contributors. To implement this feature, we can consider introducing an option that can be enabled at the repository level. When this option is enabled, the "Rebase and Merge" action would automatically add a reference to the corresponding pull request in the commit message. For example, the commit messages would be updated as follows: before commit 1 This way, contributors and maintainers can easily identify which pull request a commit belongs to, and it would improve the overall clarity and transparency of the project's commit history. We appreciate your valuable input in helping us improve our platform. Our development team will carefully consider your feedback, and we will explore the feasibility of implementing this feature. As we continually strive to enhance GitHub's functionality, suggestions like yours play a crucial role in shaping the future of our platform. If you have any further feedback, questions, or suggestions, please don't hesitate to share them with us. We value your input and look forward to making GitHub an even better place for collaboration and version control. Thank you for being a part of our community! |
Beta Was this translation helpful? Give feedback.
-
Right now looking at |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
Currently "Rebase and Merge" doesn't meet the needs of a project I am part of because the commits cannot easily be tracked back to the PR.
It would be very helpful to be able to trace commits from a "Rebase and Merge" from a PR back to the PR.
Perhaps a repo-enableable option could be added to automatically add a PR reference to the commits?
Say, turn these commits from PR #123
commit 1
commit 2
into
commit 1 (#123)
commit 2 (#123)
Beta Was this translation helpful? Give feedback.
All reactions