Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 04c695038f |
@@ -83328,7 +83328,7 @@ function query({
|
|||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "@pullfrog/action",
|
name: "@pullfrog/action",
|
||||||
version: "0.0.150",
|
version: "0.0.151",
|
||||||
type: "module",
|
type: "module",
|
||||||
files: [
|
files: [
|
||||||
"index.js",
|
"index.js",
|
||||||
@@ -98555,11 +98555,18 @@ async function deleteProgressComment(ctx) {
|
|||||||
if (!existingCommentId) {
|
if (!existingCommentId) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
await ctx.octokit.rest.issues.deleteComment({
|
try {
|
||||||
owner: ctx.owner,
|
await ctx.octokit.rest.issues.deleteComment({
|
||||||
repo: ctx.name,
|
owner: ctx.owner,
|
||||||
comment_id: existingCommentId
|
repo: ctx.name,
|
||||||
});
|
comment_id: existingCommentId
|
||||||
|
});
|
||||||
|
} catch (error41) {
|
||||||
|
if (error41 instanceof Error && error41.message.includes("Not Found")) {
|
||||||
|
} else {
|
||||||
|
throw error41;
|
||||||
|
}
|
||||||
|
}
|
||||||
progressCommentId = null;
|
progressCommentId = null;
|
||||||
progressCommentIdInitialized = true;
|
progressCommentIdInitialized = true;
|
||||||
progressCommentWasUpdated = true;
|
progressCommentWasUpdated = true;
|
||||||
|
|||||||
+14
-5
@@ -275,11 +275,20 @@ export async function deleteProgressComment(ctx: ToolContext): Promise<boolean>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
await ctx.octokit.rest.issues.deleteComment({
|
try {
|
||||||
owner: ctx.owner,
|
await ctx.octokit.rest.issues.deleteComment({
|
||||||
repo: ctx.name,
|
owner: ctx.owner,
|
||||||
comment_id: existingCommentId,
|
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
|
// reset state but mark as "updated" so ensureProgressCommentUpdated doesn't try to handle it
|
||||||
progressCommentId = null;
|
progressCommentId = null;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pullfrog/action",
|
"name": "@pullfrog/action",
|
||||||
"version": "0.0.150",
|
"version": "0.0.151",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user