Switch merge command in Pull Request to 'merge --squash'

Is it possible to change Stash behaviour of pull requests merging? PR from from_branch to master will perform merge, that produce commit with two parrents. Is it possible to specify some magic property in stash-config.properties file to replace merge command by 'merge --squash'. This will produce master branch with linear hstory from merge commits only.

But it also broke logic of stash of reachablity detection PR commits from target branch.

1 answer

1 accepted

Hi Alexey,

I'm confused. You've talked with Bryan before about this and you know there is configuration that can enable this?

https://jira.atlassian.com/browse/STASH-2810

I don't know what you mean about reachability detection being broken?

Cheers,

Charles

Hi Charles, `merge --squash` do different thing. It remove right parent link. Only create merge commit into master for example as is no pull request was created at all. This merge commit will have only one parent link.

Oops, it really that is need! Thank you!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,773 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you