* Paged, because this endpoint defaults to 30 per page - a thread past that * silently lost its older notes, in the pane and in polling alike. * * Errors propagate deliberately. Returning an empty list on a failed request * is indistinguishable from a thread whose comments were all delet
(issueNumber: number)
| 1743 | * leaves the manager's last state alone and lets it retry. |
| 1744 | */ |
| 1745 | private async getIssueComments(issueNumber: number): Promise<GitHubIssue[]> { |
| 1746 | const response = await this.requestAllPages<GitHubIssue>( |
| 1747 | `${this.repoURL}/issues/${issueNumber}/comments`, |
| 1748 | { params: { per_page: 100 } }, |
| 1749 | ); |
| 1750 | |
| 1751 | return Array.isArray(response) ? response : []; |
| 1752 | } |
| 1753 | |
| 1754 | /** |
| 1755 | * Create a comment on a GitHub issue |
no outgoing calls
no test coverage detected