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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.