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

Method create_comment

github/Gist.py:222–231  ·  view source on GitHub ↗

:calls: `POST /gists/{gist_id}/comments `_

(self, body: str)

Source from the content-addressed store, hash-verified

220 return self._user.value
221
222 def create_comment(self, body: str) -> GistComment:
223 """
224 :calls: `POST /gists/{gist_id}/comments <https://docs.github.com/en/rest/reference/gists#comments>`_
225 """
226 assert isinstance(body, str), body
227 post_parameters = {
228 "body": body,
229 }
230 headers, data = self._requester.requestJsonAndCheck("POST", f"{self.url}/comments", input=post_parameters)
231 return github.GistComment.GistComment(self._requester, headers, data, completed=True)
232
233 def create_fork(self) -> Gist:
234 """

Callers 6

testCreateCommentMethod · 0.45
testCreateCommentMethod · 0.45
testCreateCommentMethod · 0.45
testCreateCommentMethod · 0.45

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected