Make it possible to add all commit messages to squash commit message

Problem to solve

When editing the squash commit message, the user should be able to have a review of the commit messages for the commits that will be squashed and be able edit them.

Proposal

Include the checkbox below the squash message editor to include all commits messages to the squash commit message when checked. Designs are already created by @jkarthik :

Squash commits enabled

Collapsed Expanded Dropdown
squash squash--expanded squash--expanded--dropdown
  • Default squash commit message: Longest commit message available

  • "Include all commit messages" checkbox

    • If checked: Append the list of commits to the text in the textbox.

    • If unchecked: Replace the textbox with the default value (longest commit) since there is no way for us to determine if the user had modified the list of commit messages. Please do suggest if you have a better solution to this problem. Also, this is how the "include issue description" toggle works in the current implementation of the modify merge commit form.

Related issues

#47149 (closed) #50400 (moved)

Edited by Natalia Tepluhina