This commit is contained in:
Ashwin Bhat
2025-06-02 09:42:12 -07:00
parent 23a694ae90
commit 547eb3464c
4 changed files with 55 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ export type UpdateClaudeCommentResult = {
/**
* Updates a Claude comment on GitHub (either an issue/PR comment or a PR review comment)
*
*
* @param octokit - Authenticated Octokit instance
* @param params - Parameters for updating the comment
* @returns The updated comment details
@@ -67,4 +67,4 @@ export async function updateClaudeComment(
html_url: response.data.html_url,
updated_at: response.data.updated_at,
};
}
}

View File

@@ -38,7 +38,7 @@ export async function updateTrackingComment(
// Update the existing comment with the branch link
try {
const isPRReviewComment = isPullRequestReviewCommentEvent(context);
await updateClaudeComment(octokit, {
owner,
repo,
@@ -46,7 +46,7 @@ export async function updateTrackingComment(
body: updatedBody,
isPullRequestReviewComment: isPRReviewComment,
});
console.log(
`✅ Updated ${isPRReviewComment ? "PR review" : "issue"} comment ${commentId} with branch link`,
);