question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy PR description to "Squash and Merge" commit message

See original GitHub issue

When 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.

Screen Shot 2019-05-30 at 2 45 41 PM

#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:closed
  • Created 4 years ago
  • Reactions:30
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
belm0commented, Oct 15, 2021

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

2reactions
mrcasalscommented, Nov 26, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found