:calls: `DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id} `_ :param reaction_id: integer :rtype: bool
(self, reaction_id: int)
| 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 |
nothing calls this directly
no test coverage detected