get_merge_base
Get the best common ancestor of two Bitbucket branches, tags, or commit hashes to check ancestry by comparing the returned hash with a resolved commit.
Instructions
Get Bitbucket's best common ancestor of two branches, tags or hashes.
Useful for ancestry checks: compare the returned hash with a resolved commit.
Bitbucket returns one best ancestor, even if the graph has several.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| head | Yes | ||
| repo_slug | Yes |