def query_tree(self, repo: str, branch: str) -> JsonValue:
    'Queries a repository tree.\n\n    See https://docs.github.com/en/rest/reference/git#trees\n\n    Args:\n      repo: the repository\n      branch: the branch for which to get the tree\n\n    Returns:\n      JSON dict with the tree.\n    '
    url = f'https://api.github.com/repos/{repo}/git/trees/{branch}?recursive=1'
    return self.query(url)
Queries a repository tree.

See https://docs.github.com/en/rest/reference/git#trees

Args:
  repo: the repository
  branch: the branch for which to get the tree

Returns:
  JSON dict with the tree.
def query_tree(self, repo: str, branch: str) -> JsonValue:
    'Queries a repository tree.\n\n    See https://docs.github.com/en/rest/reference/git#trees\n\n    Args:\n      repo: the repository\n      branch: the branch for which to get the tree\n\n    Returns:\n      JSON dict with the tree.\n    '
    url = f'https://api.github.com/repos/{repo}/git/trees/{branch}?recursive=1'
    return self.query(url)