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.

[FR] Merge commit message template

See original GitHub issue

Bitbucket Cloud has the corresponding feature request: Issue #14101. It seems that it won’t be implemented any time soon.

With Bitbucket Cloud now supporting Squash merge strategy for PRs, the commit message becomes really important (vs having some generated commit message for merge commits). I believe for many teams it would make more sense for Squash to put PR title as a first line, instead of default Bitbucket’s suggestion Merged in ${PR_SOURCE_BRANCH} (pull request #${PR_NUMBER}).

refined-bitbucket can support simple text configuration for a template where users can use ${PR_TITLE}, ${PR_SOURCE_BRANCH}, ${PR_TARGET_BRANCH}, ${PR_NUMBER}, ${APPROVED_BY_LIST} variables to inline the corresponding data to generate a commit message for merging the PR.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
reyronaldcommented, Sep 4, 2018

Hey everyone, this feature is included in version 3.13.0. Please try it out and let me know what you think and if you find any issues with it.

0reactions
deepakrbcommented, Aug 28, 2018

Nice to be back @reyronald 😄

I was fully on board with @ikornienko’s suggestions, as in a system similar to the current Pull Request template system where you can commit a Merge Message markdown file (with variable injection) to the root directory of the project which would be inserted into the merge message.

Just speaking personally, we have a policy where we currently manually remove the first “Merged in …” comment for squashes because it really has no use to us. It makes logging and reverting commits much more difficult when someone forgets to do it and we can’t easily read the feature merge.

Taking it one step further we could also possible make those variable available in the pull request template, what do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commit message templates - GitLab Docs
Configure commit templates · On the top bar, select Main menu > Projects and find your project. · On the left sidebar, select...
Read more >
Merge commit message template · Discussion #5955 - GitHub
I would like to enforce particular message style for the merge commits. It would be very handy to have some .github/MERGE_COMMIT_TEMPLATE config file...
Read more >
Commit templates · Merge requests · Project · User · Help
Commit message templates (FREE) ... GitLab uses commit templates to create default messages for specific types of commits. These templates encourage commit ...
Read more >
Default Merge Commit message templates for all projects in ...
I want my default merge commit message to include my previous commit description/body. Merge branch '%{source_branch}' into '%{target_branch}' ...
Read more >
New options for controlling the default commit message when ...
From repository settings, a maintainer or admin can choose the default format for commit messages produced when merging pull requests: · This ...
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