def _check_repo_contents(contents_list: list, contents_ext: str):
    """Returns the list of files in a repo that match the requested extension.
    
    Args:
        contents_list (list): a list of repository content dictionaries from API.
        contents_ext (str): an extension to limit results.
        
    Returns:
        list: a subset of the input list containing only matches extensions.

    """

    # Loop over the input 'contents_list' dicitonaries.
    for content_dict in contents_list:
        
        # If file has an extension matching contents_ext, return True. 
        if content_dict['name'].endswith(contents_ext):
            return True
    
    # If didn't find any matches, return False.
    return False