React with a thumbs up to a comment
(self, comment: dict[str, Any], content: str)
| 244 | return json.dumps(self.raw, indent=2) |
| 245 | |
| 246 | def react(self, comment: dict[str, Any], content: str): |
| 247 | """ |
| 248 | React with a thumbs up to a comment |
| 249 | """ |
| 250 | url = f"issues/comments/{comment['id']}/reactions" |
| 251 | data = {"content": content} |
| 252 | if self.dry_run: |
| 253 | logging.info(f"Dry run, would have +1'ed to {url} with {data}") |
| 254 | else: |
| 255 | self.github.post(url, data=data) |
| 256 | |
| 257 | def head_commit(self): |
| 258 | return self.raw["commits"]["nodes"][0]["commit"] |
no test coverage detected