Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Set commit message through Pull Request API?


Using the API I can create pull requests and I can merge through pull requests. For certain PRs I'd like to add [skip ci] to the commit message when merging.

Is it possible to set the commit message when merging through PRs so that I can add my own commit message?



I can add a message when using a merge_comit but not with fast_forward. 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Sarvin Coachbuilder,

A fast forward merge won't create a merge commit, it will update the pointer of the destination branch to match the merged branch, when possible. So, there is no merge commit to add a message to.

If you want to use fast forward, one thing you can do is to have[skip ci] in the last commit of the source branch of the PR. This way, a Pipelines build won't run when you make the fast forward merge.

Please feel free to let me know if you have any questions.

Kind regards,

Thanks Theodora.


For other's that find this in the future; if you need to add a commit message use merge.

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,224 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you