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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.