Get the SHA of a commit's tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        sha
            The SHA of a commit.

    Returns:
        The SHA of the commit's tree.

def get_commit_tree(profile, sha):
    """Get the SHA of a commit's tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        sha
            The SHA of a commit.

    Returns:
        The SHA of the commit's tree.

    """
    data = commits.get_commit(profile, sha)
    tree = data.get("tree")
    sha = tree.get("sha")
    return sha