class Gitlab::QA::Support::GitlabVersionInfo

def previous_minor

Returns:
  • (String) -
def previous_minor
  return fallback_minor unless tags
  return previous_major if current_minor.zero?
  versions.find { |version| version.to_s.match?(/^#{current_major}\.#{current_minor - 1}/) }.tap do |ver|
    raise_version_not_found("Previous minor version for current version #{current_version}") unless ver
  end
end