docs: def get_branch_details(repo: GithubRepository, branch: str) -> Any:
      """
      References:
          https://developer.github.com/v3/repos/branches/#get-branch
      """
      url = ("https://api.github.com/repos/{}/{}/branches/{}"
             "?access_token={}".format(repo.organization,
                                       repo.name,
                                       branch,
                                       repo.access_token))
      response = requests.get(url)
  
      if response.status_code != 200:
          raise RuntimeError(
              'Failed to get branch details. Code: {}. Content: {}.'.format(
                  response.status_code, response.content))
  
      return json.JSONDecoder().decode(response.content.decode())