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

Method remove_from_repos

github/Team.py:519–526  ·  view source on GitHub ↗

:calls: `DELETE /teams/{team_id}/repos/{owner}/{repo} `_

(self, repo: str | Repository)

Source from the content-addressed store, hash-verified

517 headers, data = self._requester.requestJsonAndCheck("DELETE", f"{self.url}/members/{member._identity}")
518
519 def remove_from_repos(self, repo: str | Repository) -> None:
520 """
521 :calls: `DELETE /teams/{team_id}/repos/{owner}/{repo} <https://docs.github.com/en/rest/reference/teams>`_
522 """
523 assert isinstance(repo, (str, github.Repository.Repository)), repo
524 headers, data = self._requester.requestJsonAndCheck(
525 "DELETE", f"{self.url}/repos/{github.Repository.Repository.as_url_param(repo)}"
526 )
527
528 def _useAttributes(self, attributes: dict[str, Any]) -> None:
529 if "created_at" in attributes: # pragma no branch

Callers 1

doTestReposMethod · 0.80

Calls 2

requestJsonAndCheckMethod · 0.80
as_url_paramMethod · 0.80

Tested by

no test coverage detected