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

Method get_label

github/Repository.py:3317–3326  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/labels/{name} `_ :param name: string :rtype: :class:`github.Label.Label`

(self, name: str)

Source from the content-addressed store, hash-verified

3315 )
3316
3317 def get_label(self, name: str) -> Label:
3318 """
3319 :calls: `GET /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
3320 :param name: string
3321 :rtype: :class:`github.Label.Label`
3322 """
3323 assert isinstance(name, str), name
3324 label_name = urllib.parse.quote(name, safe="")
3325 url = f"{self.url}/labels/{label_name}"
3326 return github.Label.Label(self._requester, url=url)
3327
3328 def get_labels(self) -> PaginatedList[Label]:
3329 """

Callers 15

testAllClassesMethod · 0.80
setUpMethod · 0.80
testLazyAttributesMethod · 0.80
testGetLabelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected