MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_branches

Method get_branches

github/Repository.py:2339–2344  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/branches `_ :rtype: :class:`PaginatedList` of :class:`github.Branch.Branch`

(self)

Source from the content-addressed store, hash-verified

2337 return status == 201
2338
2339 def get_branches(self) -> PaginatedList[Branch]:
2340 """
2341 :calls: `GET /repos/{owner}/{repo}/branches <https://docs.github.com/en/rest/reference/repos>`_
2342 :rtype: :class:`PaginatedList` of :class:`github.Branch.Branch`
2343 """
2344 return PaginatedList(github.Branch.Branch, self._requester, f"{self.url}/branches", None)
2345
2346 def get_collaborators(
2347 self, affiliation: Opt[str] = NotSet, permission: Opt[str] = NotSet

Callers 1

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected