How to change the default “Squash & Merge” commit message? #16271
Replies: 10 comments 9 replies
-
Hey @arthurio thanks for posting this 😄 |
Beta Was this translation helpful? Give feedback.
-
+1 Also would be nice to have an option to have it be the title and description from the pull request. |
Beta Was this translation helpful? Give feedback.
-
this has shipped! 🚢 Default to PR titles for squash merge commit messages | GitHub Changelog |
Beta Was this translation helpful? Give feedback.
-
@spaltrowitz I don't think that's quite enough... The change only takes the PR title as commit message. It doesn't put the description details in the commit message which is (for me) the most important. |
Beta Was this translation helpful? Give feedback.
-
@spaltrowitz Thank you for shipping it! It's very useful. 😄 But please let me request one thing. is it possible to support either of the following features?:
Currently, if I edit the PR title after auto-merge is enabled, the old title is used for the squashed commit message, I feel it's not desired behavior. Here is an example. |
Beta Was this translation helpful? Give feedback.
-
I'm giving a huge plus 1 to @arthurio 's comments. As multiple other people have commented on https://github.521000.bestmunity/t/how-to-change-the-default-squash-merge-commit-message/1155/62 (the original feature request in github community), when squashing, a lot of users are explicitly wanting to discard the commit history. Squash is a great feature to allow a clean history in permanent branches, while allowing flexibility and change browsing in the PR. I think having a configuration that allows:
Would be an amazing improvement over what you have now. A further step would be the ability to have templates for the squash message (or even other merge options). |
Beta Was this translation helpful? Give feedback.
-
+1 thanks for help |
Beta Was this translation helpful? Give feedback.
-
Could you also consider adding an option to have the PR description in the merge commit message? As you can see in this gigantique thread that feature would be highly desirable by tons of people. Especially for bigger projects with a lot of contributors, not having this is really impactful. Unless all maintainers pay 100% attention to this at every new merge, the commit history of the project ends up having a bunch of "Signed-off-by", "tmp", "lint fix" and other useless phrases everywhere. That feature would completely solve it, though. |
Beta Was this translation helpful? Give feedback.
-
The feature to let admins control the default merge message presented to users when they merge a pull request is in progress! Here's an early mock at this new repo-level setting: |
Beta Was this translation helpful? Give feedback.
-
Would anyone happen to know? https://github.com/orgs/community/discussions/41462 |
Beta Was this translation helpful? Give feedback.
-
Migrated from https://github.521000.bestmunity/t/how-to-change-the-default-squash-merge-commit-message/1155/2
Original author: https://github.521000.bestmunity/u/ashi009
Beta Was this translation helpful? Give feedback.
All reactions