From 13a6f0c3b9b08e20feab4536de6ae8d32110f973 Mon Sep 17 00:00:00 2001 From: Jeffrey Sica Date: Fri, 2 Oct 2026 23:10:33 -0500 Subject: [PATCH] fix: name the cron and pull request dispatchers in their failure messages handleCronJob and handlePullReq both copied the issue-comment dispatcher's 'error handling issue comment' TypeError prefix. Report what each one actually dispatches. Unblocks review feedback on #242 and #248. Signed-off-by: Jeffrey Sica --- dist/index.js | 4 ++-- src/cronJobs/handleCronJob.ts | 2 +- src/pullReq/handlePullReq.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7a51500..1ad636e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -45023,7 +45023,7 @@ async function handleCronJobs(context = github_context) { // Check to see if any of the promises failed for (const result of results) { if (result instanceof Error) { - throw new TypeError(`error handling issue comment: ${result}`); + throw new TypeError(`error handling cron job: ${result}`); } } }) @@ -46423,7 +46423,7 @@ async function handlePullReq(context = github_context) { .then((results) => { for (const result of results) { if (result instanceof Error) { - throw new TypeError(`error handling issue comment: ${result}`); + throw new TypeError(`error handling pull request: ${result}`); } } }) diff --git a/src/cronJobs/handleCronJob.ts b/src/cronJobs/handleCronJob.ts index 761a1f4..9e990d6 100644 --- a/src/cronJobs/handleCronJob.ts +++ b/src/cronJobs/handleCronJob.ts @@ -62,7 +62,7 @@ export async function handleCronJobs(context: Context = github.context): Promise // Check to see if any of the promises failed for (const result of results) { if (result instanceof Error) { - throw new TypeError(`error handling issue comment: ${result}`) + throw new TypeError(`error handling cron job: ${result}`) } } }) diff --git a/src/pullReq/handlePullReq.ts b/src/pullReq/handlePullReq.ts index 1b5267e..a80aee4 100644 --- a/src/pullReq/handlePullReq.ts +++ b/src/pullReq/handlePullReq.ts @@ -72,7 +72,7 @@ export async function handlePullReq(context: Context = github.context): Promise< .then((results) => { for (const result of results) { if (result instanceof Error) { - throw new TypeError(`error handling issue comment: ${result}`) + throw new TypeError(`error handling pull request: ${result}`) } } })