MCPcopy
hub / github.com/PyGithub/PyGithub / edit

Method edit

github/IssueComment.py:177–187  ·  view source on GitHub ↗

:calls: `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id} `_

(self, body: str)

Source from the content-addressed store, hash-verified

175 headers, data = self._requester.requestJsonAndCheck("DELETE", self.url)
176
177 def edit(self, body: str) -> None:
178 """
179 :calls: `PATCH /repos/{owner}/{repo}/issues/comments/{comment_id} <https://docs.github.com/en/rest/reference/issues#comments>`_
180 """
181 assert isinstance(body, str), body
182 post_parameters = {
183 "body": body,
184 }
185 headers, data = self._requester.requestJsonAndCheck("PATCH", self.url, input=post_parameters)
186 self._useAttributes(data)
187 self._set_complete()
188
189 def get_reactions(self) -> PaginatedList[Reaction]:
190 """

Callers

nothing calls this directly

Calls 3

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80
_set_completeMethod · 0.80

Tested by

no test coverage detected