code: def prepare(data):
      
      message = data.get("message")
      sha = data.get("sha")
      tree = data.get("tree")
      tree_sha = tree.get("sha")
      return {"message": message, "sha": sha, "tree": {"sha": tree_sha}}
docs: Restructure/prepare data about commits for output.