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

Method get_projects

github/NamedUser.py:479–491  ·  view source on GitHub ↗

:calls: `GET /users/{username}/projects `_

(self, state: str = "open")

Source from the content-addressed store, hash-verified

477 )
478
479 def get_projects(self, state: str = "open") -> PaginatedList[Project]:
480 """
481 :calls: `GET /users/{username}/projects <https://docs.github.com/en/rest/reference/projects#list-user-projects>`_
482 """
483 assert isinstance(state, str), state
484 url_parameters = {"state": state}
485 return github.PaginatedList.PaginatedList(
486 github.Project.Project,
487 self._requester,
488 f"{self.url}/projects",
489 url_parameters,
490 headers={"Accept": Consts.mediaTypeProjectsPreview},
491 )
492
493 def get_public_events(self) -> PaginatedList[Event]:
494 """

Callers 5

testGetProjectsMethod · 0.45
testGetAllMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected