The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket is rewriting commit message for pull requests. why?

Axelsson Torbjörn _Consultant_
January 11, 2024

This has to have come up before but I can't find it.

In our pull requests we want to enforce two things:

1 - the feature branch is squashed (ie it is only one commit)
2 - that it can be added to the target branch using ff-only.

Standard behaviour, nothing weird at all.

However, after using pull requests using this for a while:

Fast-forward only--ff-only

Set as default

If the source branch is out of date with the target branch, reject the merge request. Otherwise, update the target branch to the latest commit on the source branch.


We had several instances where the branches were not squashed by the developer before starting the request, and a sloppy review (self review) would allow that through.

When changing to this:

Squash, fast-forward only--squash --ff-only

Set as default

If the source branch is out of date with the target branch, reject the merge request. Otherwise, combine all commits into one new non-merge commit on the target branch.

Even for a single commit branch, Bitbycket changes the commit and edits the commit message.

All I really want is for Bitbucket to reject a non-squashed branch, is this at all possible?

Update on this problem:

Even when everything is ready for a single commit, fast forward only, commit. Bitbucket sometimes choses to owerwrite the commit message with a useless default message.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events