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

Method edit

github/CommitComment.py:172–182  ·  view source on GitHub ↗

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

(self, body: str)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80
_set_completeMethod · 0.80

Tested by

no test coverage detected