clean up comments
This commit is contained in:
parent
787ba87628
commit
404e7dc841
@ -205,7 +205,6 @@ async function run() {
|
|||||||
|
|
||||||
const updatedBody = updateCommentBody(commentInput);
|
const updatedBody = updateCommentBody(commentInput);
|
||||||
|
|
||||||
// Update the comment using the extracted updateClaudeComment function
|
|
||||||
try {
|
try {
|
||||||
await updateClaudeComment(octokit.rest, {
|
await updateClaudeComment(octokit.rest, {
|
||||||
owner,
|
owner,
|
||||||
|
|||||||
@ -441,7 +441,6 @@ server.tool(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update Claude comment tool
|
|
||||||
server.tool(
|
server.tool(
|
||||||
"update_claude_comment",
|
"update_claude_comment",
|
||||||
"Update the Claude comment with progress and results (automatically handles both issue and PR comments)",
|
"Update the Claude comment with progress and results (automatically handles both issue and PR comments)",
|
||||||
@ -465,12 +464,10 @@ server.tool(
|
|||||||
const repo = REPO_NAME;
|
const repo = REPO_NAME;
|
||||||
const commentId = parseInt(claudeCommentId, 10);
|
const commentId = parseInt(claudeCommentId, 10);
|
||||||
|
|
||||||
// Create Octokit instance
|
|
||||||
const octokit = new Octokit({
|
const octokit = new Octokit({
|
||||||
auth: githubToken,
|
auth: githubToken,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Determine if this is a PR review comment based on event type
|
|
||||||
const isPullRequestReviewComment =
|
const isPullRequestReviewComment =
|
||||||
eventName === "pull_request_review_comment";
|
eventName === "pull_request_review_comment";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user