:calls: `POST /gists/{gist_id}/comments `_
(self, body: str)
| 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 | """ |
no test coverage detected