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

How to fetch the best common ancestor of the Pull Request with the Rest API ?

Jgafner October 28, 2020

Hi
I need to make a rest call to our server and to get the commit hash of the best common ancestor, same as running 'git merge-base pr-last-commit target-last-commit'

I know how to get the all commits and check if those are merge commits but how can I know if the merge is from the target or from another branch ? 

I don't/can't to rely on the commit message. 

Thanks 

1 answer

0 votes
Jgafner October 31, 2020

Still did not find a good way to do that

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events