class_docstr: The Hub Utils to deal with the http request. And other staticmethod for hub.
  
  Args:
      author (`str`):
          The author of the repo.
      repo (`str`):
          The name of the repo.
      root (`str`):
          The root url where the repo located.
class_docstr_tok: ["The","Hub","Utils","to","deal","with","the","http","request",".","And","other","staticmethod","for","hub",".","Args",":","author","(","`","str","`",")",":","The","author","of","the","repo",".","repo","(","`","str","`",")",":","The","name","of","the","repo",".","root","(","`","str","`",")",":","The","root","url","where","the","repo","located","."]
docstr: Get a list of all commits of a repo.
  
  Args:
      limit (`int`):
          Page size of results.
      page (`int`):
          Page number of results.
      tag (`str`):
          The tag name.
  
  Returns:
      (`Response`)
          A list of all commits of a repo.
  
  Raises:
      (`HTTPError`)
          Raise error in request.
docstr_tok: ["Get","a","list","of","all","commits","of","a","repo",".","Args",":","limit","(","`","int","`",")",":","Page","size","of","results",".","page","(","`","int","`",")",":","Page","number","of","results",".","tag","(","`","str","`",")",":","The","tag","name",".","Returns",":","(","`","Response","`",")","A","list","of","all","commits","of","a","repo",".","Raises",":","(","`","HTTPError","`",")","Raise","error","in","request","."]
code: def get_commits(
      self, limit: int, page: int, tag: str
  ) -> requests.Response:
      """
      Get a list of all commits of a repo.
  
      Args:
          limit (`int`):
              Page size of results.
          page (`int`):
              Page number of results.
          tag (`str`):
              The tag name.
  
      Returns:
          (`Response`)
              A list of all commits of a repo.
  
      Raises:
          (`HTTPError`)
              Raise error in request.
      """
  
      url = f"{self._root}/api/v1/repos/{self._author}/{self._repo}/commits?limit={limit}&page={page}&sha={tag}"
      try:
          response = requests.get(url, allow_redirects=True)
          response.raise_for_status()
          return response
      except HTTPError as e:
          raise e
  
imports: import random
  import traceback
  import requests
  from requests.exceptions import HTTPError
  from requests.auth import HTTPBasicAuth
  from towhee.utils.log import engine_log
label_desc: Use image node_id 8 for calling the HubUtils obj's underlying member method code with example usage: obj.get_commits(limit, page, tag) and returns: response