Compare commits

...

1 Commits

Author SHA1 Message Date
Colin McDonnell 04c695038f 151 2025-12-22 13:57:51 -08:00
3 changed files with 28 additions and 12 deletions
+13 -6
View File
@@ -83328,7 +83328,7 @@ function query({
// package.json
var package_default = {
name: "@pullfrog/action",
version: "0.0.150",
version: "0.0.151",
type: "module",
files: [
"index.js",
@@ -98555,11 +98555,18 @@ async function deleteProgressComment(ctx) {
if (!existingCommentId) {
return false;
}
await ctx.octokit.rest.issues.deleteComment({
owner: ctx.owner,
repo: ctx.name,
comment_id: existingCommentId
});
try {
await ctx.octokit.rest.issues.deleteComment({
owner: ctx.owner,
repo: ctx.name,
comment_id: existingCommentId
});
} catch (error41) {
if (error41 instanceof Error && error41.message.includes("Not Found")) {
} else {
throw error41;
}
}
progressCommentId = null;
progressCommentIdInitialized = true;
progressCommentWasUpdated = true;
+14 -5
View File
@@ -275,11 +275,20 @@ export async function deleteProgressComment(ctx: ToolContext): Promise<boolean>
return false;
}
await ctx.octokit.rest.issues.deleteComment({
owner: ctx.owner,
repo: ctx.name,
comment_id: existingCommentId,
});
try {
await ctx.octokit.rest.issues.deleteComment({
owner: ctx.owner,
repo: ctx.name,
comment_id: existingCommentId,
});
} catch (error) {
// ignore 404 - comment already deleted
if (error instanceof Error && error.message.includes("Not Found")) {
// comment already deleted, continue
} else {
throw error;
}
}
// reset state but mark as "updated" so ensureProgressCommentUpdated doesn't try to handle it
progressCommentId = null;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.150",
"version": "0.0.151",
"type": "module",
"files": [
"index.js",