Copy PR description to "Squash and Merge" commit message
See original GitHub issueWhen using the Squash and Merge
feature in GitHub, I think would be really useful to copy the PR description and use that as the merge commit message.
Currently, if there are multiple commits in the branch then GitHub uses a list of the commit titles as the default merge commit message. My PR descriptions usually have more details than the commit titles, so I end up manually copying the description into the commit message field.
#1264 touched on this, but also included changing the merge title. It seems like the negative feedback to that feature request was focused around changing the merge title, so I’m curious if people are supportive of a feature that only changes the commit message functionality.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:30
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Copy PR description to "Squash and Merge" commit message
My PR descriptions usually have more details than the commit titles, so I end up manually copying the description into the commit message...
Read more >Default to PR titles for squash merge commit messages
You can now default to using PR titles for all squash merge commit messages. Navigate to 'Settings' in your repository and scroll down...
Read more >Github: use pull request description as merge commit message?
I would like to use the pull request body as the default merge commit message. Yes, I could copy-paste this into the editor...
Read more >Squash and merge - GitLab Docs
Squash commits in a merge request · Go to the merge request, and scroll to the merge request reports section that contains the...
Read more >Merge strategies and squash merge - Azure Repos
Choose Squash commit under Merge type in the Complete pull request dialog to squash merge the topic branch. Screenshot of closing a pull...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I read through #1264, and I don’t understand the argument against copying PR description to commit message for squash-and-merge specifically.
Especially, the following comment seems to be focused on merge commits, and not considering squash-and-merge. For squash-and-merge, there is no “noise in the commit list”, and it’s essential to have a coherent commit message for posterity. @fregante
https://github.com/refined-github/refined-github/issues/1264#issuecomment-381915056
I agree with @belm0, could we have this feature? Maybe even have it disabled by default, if you think that’s too invasive, but for me it’s unexpected that only the PR title is copied. Thanks!