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

Method edit

github/PullRequestReview.py:153–167  ·  view source on GitHub ↗

:calls: `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} `_

(self, body: str)

Source from the content-addressed store, hash-verified

151 headers, data = self._requester.requestJsonAndCheck("DELETE", f"{self.pull_request_url}/reviews/{self.id}")
152
153 def edit(self, body: str) -> None:
154 """
155 :calls: `PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}
156 <https://docs.github.com/en/rest/pulls/reviews#update-a-review-for-a-pull-request>`_
157 """
158 assert isinstance(body, str), body
159 post_parameters = {
160 "body": body,
161 }
162 headers, data = self._requester.requestJsonAndCheck(
163 "PUT",
164 f"{self.pull_request_url}/reviews/{self.id}",
165 input=post_parameters,
166 )
167 self._useAttributes(data)
168
169 def _useAttributes(self, attributes: dict[str, Any]) -> None:
170 if "author_association" in attributes: # pragma no branch

Callers

nothing calls this directly

Calls 2

_useAttributesMethod · 0.95
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected