docs: async function getBaseTag(mode) {
    const tags = await simpleGit.tags();
    // Filter old independent-versioned tags and pre-releases.
    // If cherry-picking for a minor release, ignore patch releases to work from the latest major or minor release.
    const filteredTags = tags.all.filter((tag) => /^v/.test(tag) && !/-/.test(tag) &&
        (mode !== 'minor' || /\.0$/.test(tag)));
  
    return filteredTags[filteredTags.length - 1];
  }