fix: correct action name

This commit is contained in:
Matyáš Caras 2024-07-30 16:00:56 +02:00
parent 49137a664a
commit 9a39f88538
Signed by: hernik
GPG key ID: 2A3175F98820C5C6
2 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -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 ? `<div><span data-freelo-mention="1" data-freelo-user-id="${userPairing.filter((u) => u.includes(issue.user.login))[0].split(":")[1]}">@${issue.user.login}</span></div>` : `@${issue.user.login}`;
const taskComment = `
Created by: ${author}

View file

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