( client: Octokit, owner: string, repo: string, commentId: number )
| 181 | } |
| 182 | |
| 183 | async function fetchComment( |
| 184 | client: Octokit, |
| 185 | owner: string, |
| 186 | repo: string, |
| 187 | commentId: number |
| 188 | ): Promise<{ body: string; author: string }> { |
| 189 | const { data } = await retryWithBackoff(() => |
| 190 | client.issues.getComment({ owner, repo, comment_id: commentId }) |
| 191 | ); |
| 192 | return { body: data.body ?? "", author: data.user?.login ?? "unknown" }; |
| 193 | } |
| 194 | |
| 195 | async function deleteComment( |
| 196 | client: Octokit, |
no test coverage detected