def METHOD_NAME(repo):
    """
    Using `gh` cli get the github releases page details then
    create a list of grouped version on major.minor 
    and for each give all major.minor.patch with release dates
    """
    # Run the `gh release` command to get the release list
    output = subprocess.check_output(['gh', 'release', '-R', repo, 'list'], text=True)
    # Parse the output and group by major and minor version numbers
    versions = defaultdict(lambda: [])
    for line in output.strip().split('\n'):
        parts = line.split('\t')
        # pprint.pprint(parts)
        version = parts[0]
        parsed_version = parse_version(version)
        if parsed_version is None:
            continue
        major, minor, patch = parsed_version
        published = datetime.datetime.strptime(parts[3], '%Y-%m-%dT%H:%M:%SZ')
        versions[(major, minor)].append((version, published))
    return(versions)