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`,