async function getTags(branch, execaOptions) {
  return (await execa("git", ["tag", "--merged", branch], execaOptions)).stdout
    .split("\n")
    .map((tag) => tag.trim())
    .filter(Boolean);
}
Get all the tags for a given branch.

@param {String} branch The branch for which to retrieve the tags.
@param {Object} [execaOpts] Options to pass to `execa`.

@return {Array<String>} List of git tags.
@throws {Error} If the `git` command fails.