mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-11-10 02:38:06 +01:00
fix: correct action name
This commit is contained in:
parent
49137a664a
commit
9a39f88538
2 changed files with 3 additions and 3 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -45354,7 +45354,7 @@ try {
|
||||||
}
|
}
|
||||||
if (tasklistId) {
|
if (tasklistId) {
|
||||||
switch (action) {
|
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 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 = `
|
const taskComment = `
|
||||||
Created by: ${author}
|
Created by: ${author}
|
||||||
|
|
|
@ -64,7 +64,7 @@ try {
|
||||||
|
|
||||||
if (tasklistId) {
|
if (tasklistId) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case "created": {
|
case "opened": {
|
||||||
// New issue has been created, create a task in tasklist
|
// New issue has been created, create a task in tasklist
|
||||||
const author =
|
const author =
|
||||||
userPairing &&
|
userPairing &&
|
||||||
|
@ -83,7 +83,7 @@ try {
|
||||||
comment: {
|
comment: {
|
||||||
content: taskComment,
|
content: taskComment,
|
||||||
},
|
},
|
||||||
};
|
}; // TODO: assignee
|
||||||
|
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${apiEndpoint}/project/${projectId}/tasklist/${tasklistId}/tasks`,
|
`${apiEndpoint}/project/${projectId}/tasklist/${tasklistId}/tasks`,
|
||||||
|
|
Loading…
Reference in a new issue