From 9a39f885387b2e8b43ef8b53276b0077d3b2592c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Tue, 30 Jul 2024 16:00:56 +0200 Subject: [PATCH] fix: correct action name --- dist/index.js | 2 +- src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index eac92a1..c302834 100644 --- a/dist/index.js +++ b/dist/index.js @@ -45354,7 +45354,7 @@ try { } if (tasklistId) { switch (action) { - case "created": { + case "opened": { const author = userPairing && userPairing.filter((u) => u.includes(issue.user.login)).length > 0 ? `
@${issue.user.login}
` : `@${issue.user.login}`; const taskComment = ` Created by: ${author} diff --git a/src/index.ts b/src/index.ts index 2a8c983..8733686 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,7 @@ try { if (tasklistId) { switch (action) { - case "created": { + case "opened": { // New issue has been created, create a task in tasklist const author = userPairing && @@ -83,7 +83,7 @@ try { comment: { content: taskComment, }, - }; + }; // TODO: assignee const res = await axios.post( `${apiEndpoint}/project/${projectId}/tasklist/${tasklistId}/tasks`,