def get_modified_files_list(diff):
    """Get list of modified or newly added files list"""
    file_list = []
    for file in diff["files"]:
        if file["status"] == "modified" or file["status"] == "added":
            file_list.append(file["filename"])

    return file_list