def METHOD_NAME(self, patch_set):
    file_changes = []
    for changed_file in patch_set:
        if changed_file["new_file"]:
            file_changes.append({"path": changed_file["new_path"], "type": "A"})
        elif changed_file["deleted_file"]:
            file_changes.append({"path": changed_file["old_path"], "type": "D"})
        elif changed_file["renamed_file"]:
            file_changes.append({"path": changed_file["old_path"], "type": "D"})
            file_changes.append({"path": changed_file["new_path"], "type": "A"})
        else:
            file_changes.append({"path": changed_file["new_path"], "type": "M"})
    return file_changes