(pr, reviewers)
| 175 | |
| 176 | |
| 177 | def make_ping_message(pr, reviewers): |
| 178 | reviewers = [f"@{r}" for r in reviewers] |
| 179 | author = f"@{pr['author']['login']}" |
| 180 | text = ( |
| 181 | "It has been a while since this PR was updated, " |
| 182 | + " ".join(reviewers) |
| 183 | + " please leave a review or address the outstanding comments. " |
| 184 | + f"{author} if this PR is still a work in progress, please [convert it to a draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft)" |
| 185 | " until it is ready for review." |
| 186 | ) |
| 187 | return text |
| 188 | |
| 189 | |
| 190 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…