getInvalidTags = function ({
  remoteTags,
  validTags,
  gitTagIgnore,
  gitTagPrefix,
  minVersion
}) {
  let tags = differenceBy(remoteTags, validTags, x => x.tag);
  if (gitTagPrefix) {
    tags = tags.filter(x => x.tag.startsWith(gitTagPrefix));
  }
  if (gitTagIgnore) {
    const ignoreRe = new RegExp(gitTagIgnore, "i");
    tags = tags.filter(x => !ignoreRe.test(x.tag));
  }
  if (minVersion) {
    try {
      tags = tags.filter(
        x =>
          compareVersions(
            getVersionFromTag(x.tag),
            getVersionFromTag(minVersion)
          ) >= 0
      );
      // eslint-disable-next-line no-empty
    } catch (error) { }
  }
  return tags;
}
Return invalid tags. Tags have been ignored, without the given prefix, or filtered by
minVersion are not considered invalid.