def METHOD_NAME(environment, repo):
    print(color_summary(">> Compiling deploy summary"))
    current_commit = get_current_formplayer_version(environment)
    latest_version = get_latest_formplayer_version(environment.name)
    new_version_details = {}
    if latest_version:
        new_version_details["Release Name"] = environment.release_name
        new_version_details["Commit"] = latest_version.commit
        new_version_details["Commit message"] = latest_version.message
        new_version_details["Commit date"] = f"{latest_version.commit_time_ago} ({latest_version.time})"
        new_version_details["Build time"] = f"{latest_version.build_time_ago} ({latest_version.build_time})"
    diff = DeployDiff(
        repo, current_commit, latest_version.commit, environment,
        new_version_details=new_version_details,
        generate_diff=environment.fab_settings_config.generate_deploy_diffs
    )
    return diff