class_docstr: Class for interacting with a GitHub repository.
  
  .. note::
  
      To interact with private GitHub repositories that you have access to,
      provide your GitHub personal access token by setting the
      ``GITHUB_TOKEN`` environment variable.
  
  Args:
      repo: the GitHub repository or identifier, which can be:
  
          -   a GitHub URL like ``https://github.com/<user>/<repo>``
          -   a GitHub ref like
              ``https://github.com/<user>/<repo>/tree/<branch>`` or
              ``https://github.com/<user>/<repo>/commit/<commit>``
          -   a GitHub ref string like ``<user>/<repo>[/<ref>]``
docstr: Returns the contents of the repo rooted at the given path.
  
  .. note::
  
      This method has a limit of 1,000 files.
      `Documentation <https://docs.github.com/en/rest/repos/contents>`_.
  
  Args:
      path (None): an optional root path to start the search from
  
  Returns:
      a list of file info dicts
docstr_tok: ["Returns","the","contents","of","the","repo","rooted","at","the","given","path",".","..","note",":",":","This","method","has","a","limit","of","1,000","files",".","`","Documentation","<","https",":","\/\/docs.github.com\/en\/rest\/repos\/contents",">","`","_",".","Args",":","path","(","None",")",":","an","optional","root","path","to","start","the","search","from","Returns",":","a","list","of","file","info","dicts"]
code: def list_path_contents(self, path=None):
      """Returns the contents of the repo rooted at the given path.
  
      .. note::
  
          This method has a limit of 1,000 files.
          `Documentation <https://docs.github.com/en/rest/repos/contents>`_.
  
      Args:
          path (None): an optional root path to start the search from
  
      Returns:
          a list of file info dicts
      """
      url = f"https://api.github.com/repos/{self.user}/{self.repo}/contents"
      if path:
          url += "/" + path
  
      if self.ref:
          url += "?ref=" + self.ref
  
      return self._get(url)
  
imports: import logging
  import os
  import re
  import requests
  import eta.core.utils
  import eta.core.web
label_desc: Use image node_id 9 for calling the GitHubRepository obj's underlying member method code with example usage: obj.list_path_contents(path) and returns: self