Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-6980

Add option for not including individual commit messages in pull request merge commit messages

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Currently when you merge a pull request in Stash, the resulting commit message for the merge includes the messages from all the individual commits being merged. This causes us problems because we use Crucible to generate release reports, and merging from our release branch into develop (for hot fixes added to release after cutting the branch off develop) causes JIRAs from previous releases to be included in the report for the next release.

      It would be great to have an option to NOT include the individual commit messages in the merge commit.

          Form Name

            [BSERV-6980] Add option for not including individual commit messages in pull request merge commit messages

            Kanwar made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 452096 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3396877 ] New: JAC Suggestion Workflow 3 [ 3622022 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Christopher Kochovski made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 450323 ]
            Bryan Turner (Inactive) made changes -
            Attachment New: image-2019-09-05-14-14-58-164.png [ 371653 ]
            Bryan Turner (Inactive) made changes -
            Fix Version/s New: 6.7.0 [ 89005 ]
            Resolution New: Done [ 17 ]
            Status Original: Gathering Interest [ 11772 ] New: RESOLVED [ 5 ]

            Bryan Turner (Inactive) added a comment - - edited

            Bitbucket Server 6.7.0 adds a new "Commit summaries" setting to the "Merge strategies" tab, at both project and repository level, which allows configuring the number of summaries appended to the user-supplied message when a pull request is merged.

            The value defaults to 20, which matches the existing functionality, but it can be configured to 0 to completely omit --log details when merging or squashing a pull request. (Note that "ff-only" and "rebase + merge -ff-only" strategies don't use user-provided commit messages at all, so they already didn't, and still don't, append --log output regardless of this new setting.) The setting cannot be overridden at merge time. Administrators (project, repository or global) can configure the value they want to be used, and it will be used for all pull requests merged from that point forward.

            Note that when a value is configured at project level, if any repositories inside that project are configured to use custom settings rather than inheriting their settings, whatever commit summary count is configured for the repository will override whatever value was set at the project level. (This is the same handling that's applied to the enabled merge strategies; the most specific configuration is the configuration that gets used.)

            Best regards,
            Bryan Turner
            Atlassian Bitbucket

            Bryan Turner (Inactive) added a comment - - edited Bitbucket Server 6.7.0 adds a new "Commit summaries" setting to the "Merge strategies" tab, at both project and repository level, which allows configuring the number of summaries appended to the user-supplied message when a pull request is merged. The value defaults to 20, which matches the existing functionality, but it can be configured to 0 to completely omit --log details when merging or squashing a pull request. (Note that "ff-only" and "rebase + merge -ff-only" strategies don't use user-provided commit messages at all, so they already didn't, and still don't, append --log output regardless of this new setting.) The setting cannot be overridden at merge time. Administrators (project, repository or global) can configure the value they want to be used, and it will be used for all pull requests merged from that point forward. Note that when a value is configured at project level, if any repositories inside that project are configured to use custom settings rather than inheriting their settings, whatever commit summary count is configured for the repository will override whatever value was set at the project level. (This is the same handling that's applied to the enabled merge strategies; the most specific configuration is the configuration that gets used.) Best regards, Bryan Turner Atlassian Bitbucket
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: BSERV Suggestions Workflow [ 2684061 ] New: JAC Suggestion Workflow [ 3396877 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 791775 ] New: BSERV Suggestions Workflow [ 2684061 ]
            Status Original: Open [ 1 ] New: Gathering Interest [ 11772 ]
            Roger Barnes (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 166664 ]
            Roger Barnes (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]

              Unassigned Unassigned
              b43a6fa40666 David Blundell
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: