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

Method delete_reaction

github/CommitComment.py:215–228  ·  view source on GitHub ↗

:calls: `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id} `_ :param reaction_id: integer :rtype: bool

(self, reaction_id: int)

Source from the content-addressed store, hash-verified

213 return github.Reaction.Reaction(self._requester, headers, data)
214
215 def delete_reaction(self, reaction_id: int) -> bool:
216 """
217 :calls: `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}
218 <https://docs.github.com/en/rest/reference/reactions#delete-a-commit-comment-reaction>`_
219 :param reaction_id: integer
220 :rtype: bool
221 """
222 assert isinstance(reaction_id, int), reaction_id
223 status, _, _ = self._requester.requestJson(
224 "DELETE",
225 f"{self.url}/reactions/{reaction_id}",
226 headers={"Accept": Consts.mediaTypeReactionsPreview},
227 )
228 return status == 204
229
230 def _useAttributes(self, attributes: dict[str, Any]) -> None:
231 if "author_association" in attributes: # pragma no branch

Callers

nothing calls this directly

Calls 1

requestJsonMethod · 0.80

Tested by

no test coverage detected