mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-26 17:02:24 +08:00
prettier
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user