Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17743

Support commit list substitution in pull request description templates

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      From BCLOUD-11571:

      Prior to activating the templates, I could use a commit message like the following:

      Derezz the master control program
      
      MCP turned out to be evil and had become intent on world domination.
      This commit throws Tron's disc into MCP (causing its deresolution)
      and turns it back into a chess game.
      

      And it would use the first line (subject line) as the PR title and the message would automatically be inserted into the description. If I've already written a detailed commit message, I don't want to have to re-type it for the PR.

       


      Latest update from Atlassian 2023-07-20

      We have added a capability that lets you substitute a list of commit messages by using the variable {{commit_messages}} in a default pull request description template. Docs are here: https://support.atlassian.com/bitbucket-cloud/docs/pull-request-and-merge-settings/

          Form Name

            [BCLOUD-17743] Support commit list substitution in pull request description templates

            Pinned comments

            Hi all, good news from the Bitbucket team:

            We have added a capability that lets you substitute a list of commit messages by using the variable {{commit_messages}} in a default pull request description template. Docs are here: https://support.atlassian.com/bitbucket-cloud/docs/pull-request-and-merge-settings/

            Dave Parrish [Atlassian] added a comment - - edited Hi all, good news from the Bitbucket team: We have added a capability that lets you substitute a list of commit messages by using the variable {{ commit_messages }} in a default pull request description template. Docs are here: https://support.atlassian.com/bitbucket-cloud/docs/pull-request-and-merge-settings/

            All comments

            dparrish 

            I'm following up on 4fab1a620c9f 's comment from 4th June this year. We've just discovered the availability of custom pull request templates, which fits quite nicely with what we want to put in ours, BUT what we normally do on our Data Center instance is add stuff around the default list of commits, rather than replace them. With this variable in place we ought to be able to get the best of both worlds, but I've tried it on Data Center and either it's not supported/doesn't work, or I've done it wrong

            John McCabe added a comment - dparrish   I'm following up on 4fab1a620c9f 's comment from 4th June this year. We've just discovered the availability of custom pull request templates, which fits quite nicely with what we want to put in ours, BUT what we normally do on our Data Center instance is add stuff around the default list of commits, rather than replace them. With this variable in place we ought to be able to get the best of both worlds, but I've tried it on Data Center and either it's not supported/doesn't work, or I've done it wrong

            Is this available in Bitbucket Server?

            Efetobore Akpoguma added a comment - Is this available in Bitbucket Server?

            Hi all, good news from the Bitbucket team:

            We have added a capability that lets you substitute a list of commit messages by using the variable {{commit_messages}} in a default pull request description template. Docs are here: https://support.atlassian.com/bitbucket-cloud/docs/pull-request-and-merge-settings/

            Dave Parrish [Atlassian] added a comment - - edited Hi all, good news from the Bitbucket team: We have added a capability that lets you substitute a list of commit messages by using the variable {{ commit_messages }} in a default pull request description template. Docs are here: https://support.atlassian.com/bitbucket-cloud/docs/pull-request-and-merge-settings/

            Hi all, it's Dave from the Bitbucket PM team. Just a quick update that we are actively working on this. I'll update you here when we release the feature!

            Dave Parrish [Atlassian] added a comment - Hi all, it's Dave from the Bitbucket PM team. Just a quick update that we are actively working on this. I'll update you here when we release the feature!

            note : all othe rplatform are doing it ....

            Jonathan VB added a comment - note : all othe rplatform are doing it ....

            +1 here as well, or +100 if you count our whole team

            Johnathan Brooks added a comment - +1 here as well, or +100 if you count our whole team

            need this asap.

            Hamza Hassan added a comment - need this asap.

            Very much interested in this 

            Caio Favero added a comment - Very much interested in this 

            Gaurav added a comment -

            +1

            Gaurav added a comment - +1

            +1

            enrico.sutera added a comment - +1

              dparrish Dave Parrish [Atlassian]
              awilkes Alastair Wilkes
              Votes:
              165 Vote for this issue
              Watchers:
              77 Start watching this issue

                Created:
                Updated:
                Resolved: