mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-12-21 20:31:04 +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) {
|
||||
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}
|
||||
|
|
|
@ -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`,
|
||||
|
|
Loading…
Reference in a new issue