Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set commit message through Pull Request API? Edited

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?

 

Edit:

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,
Theodora

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
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

77 views 0 2
Join discussion

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