MCPcopy
hub / github.com/PyGithub/PyGithub / remove_from_assignees

Method remove_from_assignees

github/PullRequest.py:980–995  ·  view source on GitHub ↗

:calls: `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees `_

(self, *assignees: github.NamedUser.NamedUser | str)

Source from the content-addressed store, hash-verified

978 self._useAttributes({"assignees": data["assignees"]})
979
980 def remove_from_assignees(self, *assignees: github.NamedUser.NamedUser | str) -> None:
981 """
982 :calls: `DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees <https://docs.github.com/en/rest/reference/issues#assignees>`_
983 """
984 assert all(isinstance(element, (github.NamedUser.NamedUser, str)) for element in assignees), assignees
985 post_parameters = {
986 "assignees": [
987 assignee.login if isinstance(assignee, github.NamedUser.NamedUser) else assignee
988 for assignee in assignees
989 ]
990 }
991 headers, data = self._requester.requestJsonAndCheck(
992 "DELETE", f"{self.issue_url}/assignees", input=post_parameters
993 )
994 # Only use the assignees attribute, since we call this PR as an issue
995 self._useAttributes({"assignees": data["assignees"]})
996
997 def update_branch(self, expected_head_sha: Opt[str] = NotSet) -> bool:
998 """

Callers

nothing calls this directly

Calls 2

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected