MCPcopy Index your code
hub / github.com/kirodotdev/Kiro / fetchComment

Function fetchComment

scripts/delete_spam_comments.ts:183–193  ·  view source on GitHub ↗
(
  client: Octokit,
  owner: string,
  repo: string,
  commentId: number
)

Source from the content-addressed store, hash-verified

181}
182
183async 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
195async function deleteComment(
196 client: Octokit,

Callers 1

mainFunction · 0.85

Calls 1

retryWithBackoffFunction · 0.85

Tested by

no test coverage detected