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

Method get_gitignore_template

github/MainClass.py:966–973  ·  view source on GitHub ↗

:calls: `GET /gitignore/templates/{name} `_

(self, name: str)

Source from the content-addressed store, hash-verified

964 return data
965
966 def get_gitignore_template(self, name: str) -> GitignoreTemplate:
967 """
968 :calls: `GET /gitignore/templates/{name} <https://docs.github.com/en/rest/reference/gitignore>`_
969 """
970 assert isinstance(name, str), name
971 name = urllib.parse.quote(name)
972 headers, attributes = self.__requester.requestJsonAndCheck("GET", f"/gitignore/templates/{name}")
973 return github.GitignoreTemplate.GitignoreTemplate(self.__requester, headers, attributes)
974
975 def get_emojis(self) -> dict[str, str]:
976 """

Callers 2

testAllClassesMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected