Leave the comment 'text' on this PR
(self, text: str)
| 368 | return self.search_users(user, MENTIONABLE_QUERY)["mentionableUsers"]["nodes"] |
| 369 | |
| 370 | def comment(self, text: str) -> None: |
| 371 | """ |
| 372 | Leave the comment 'text' on this PR |
| 373 | """ |
| 374 | logging.info(f"Commenting:\n{text}") |
| 375 | # TODO: Update latest comment in-place if there has been no activity |
| 376 | data = {"body": text} |
| 377 | url = f"issues/{self.number}/comments" |
| 378 | if self.dry_run: |
| 379 | logging.info( |
| 380 | f"Dry run, would have commented on url={url} commenting with data={to_json_str(data)}" |
| 381 | ) |
| 382 | return |
| 383 | |
| 384 | self.github.post(url, data=data) |
| 385 | |
| 386 | def state(self) -> str: |
| 387 | """ |
no test coverage detected