MCPcopy
hub / github.com/PyGithub/PyGithub / get_seats

Method get_seats

github/Copilot.py:51–62  ·  view source on GitHub ↗

:calls: `GET /orgs/{org}/copilot/billing/seats `_

(self)

Source from the content-addressed store, hash-verified

49 return self._org_name.value
50
51 def get_seats(self) -> PaginatedList[CopilotSeat]:
52 """
53 :calls: `GET /orgs/{org}/copilot/billing/seats <https://docs.github.com/en/rest/copilot/copilot-business>`_
54 """
55 url = f"/orgs/{self._org_name.value}/copilot/billing/seats"
56 return PaginatedList(
57 github.CopilotSeat.CopilotSeat,
58 self._requester,
59 url,
60 None,
61 list_item="seats",
62 )
63
64 def add_seats(self, selected_usernames: list[str]) -> int:
65 """

Callers 2

testAttributesMethod · 0.80
testGetSeatsMethod · 0.80

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected