Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using the API to determine if a commit is in a branch

dwang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2020

I'm using Bitbucket Cloud. We create PRs into a dev branch and then eventually push dev to master. Is there a way I can use the API to figure out which of these PRs made it into master, and which are still only in dev?

I can do something a bit similar using Git by doing something like:

git branch --contains {hash}

and then manually looking at the list and seeing if "dev" and "master" are on that list.

Is there a more simple way to accomplish what I'm trying to do? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events