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

Bitbucket Cloud: Verify Merge Checks via API 2 Edited

Apparently, using API 1.0 it was possible to check if a Pull Request satisfied merge checks by making  GET request to the merge endpoint. The same thing doesn't work in 2.0:

https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/pullrequests/<pull_request_id>/merge

Unfortunately this does not work any longer and when making a GET request to this endpoint I get a strange error:

 

`This endpoint does not support token-based authentication`

Though, I am just using Basic Authentication

1 answer

0 votes

I found the "canMerge" value in 1.0 very useful because we have multiple repos we sometimes need to merge code to at once. It would save me a lot of code if something was similar in 2.0, but there isn't. I had to resort to checking the PR events for approvals to see if required approves had approved, and checking for merge conflicts manually instead. Messy mess.

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,869 views 0 7
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