(self, pr: any)
| 106 | # TODO: any type should be replaced with the correct github type, but it requires refactoring to |
| 107 | # not require the github module to be installed everywhere. |
| 108 | def find_comment(self, pr: any) -> any: |
| 109 | for comment in pr.as_issue().get_comments(): |
| 110 | if self.comment_tag in comment.body: |
| 111 | return comment |
| 112 | return None |
| 113 | |
| 114 | def update_pr(self, comment_text: str, args: FormatArgs, create_new: bool) -> None: |
| 115 | import github |