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

Method remove_from_labels

github/Issue.py:560–569  ·  view source on GitHub ↗

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

(self, label: Label | str)

Source from the content-addressed store, hash-verified

558 self._set_complete()
559
560 def remove_from_labels(self, label: Label | str) -> None:
561 """
562 :calls: `DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
563 """
564 assert isinstance(label, (github.Label.Label, str)), label
565 if isinstance(label, github.Label.Label):
566 label = label._identity
567 else:
568 label = urllib.parse.quote(label)
569 headers, data = self._requester.requestJsonAndCheck("DELETE", f"{self.url}/labels/{label}")
570
571 def set_labels(self, *labels: Label | str) -> None:
572 """

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected