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

How to distinguish a merge commit in the list of commits in a pulll request?

I am looking for a way to find which commit is a Merge Commit in a list of commits of a particular PR





1 answer

1 accepted

0 votes
Answer accepted

Hi @Eduardo Rodrigues 

I'm afraid the API endpoint doesn't have a field that separates the merged commit from the others.
Right now, I've gone ahead and created a feature request to add a field that will distinguish that here. -
You can upvote and watch it so that you'll be notified of updates from our product team.
Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.

May I ask if all your merged commit's messages have the format below?

"message" : "Merged in some_branch (pull request #123) ......"

If yes, maybe you can parse the "message" field with the format above?

Mark C

Suggest an answer

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

Share your use cases: 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 to 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 tea...

41 views 0 1
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