def METHOD_NAME(cls, ctx, repo, from_ref, to_ref):
    comparison = get_compare(from_ref, to_ref, repo, config=ctx.obj)
    return [Commit.from_github_commit(ctx, repo, gh_commit) for gh_commit in comparison['commits']]