Compare commits
No commits in common. "1402f28b983e3a034e9bc697b5d01939cbfbef1f" and "dd36ee1abaae430d1fb427353b54e74edf8a109a" have entirely different histories.
1402f28b98
...
dd36ee1aba
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "kanbanmod",
|
"name": "kanbanmod",
|
||||||
"version": "1.1.2",
|
"version": "1.1.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "kanbanmod",
|
"name": "kanbanmod",
|
||||||
"version": "1.1.2",
|
"version": "1.1.1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bhttp": "^1.2.8",
|
"bhttp": "^1.2.8",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "kanbanmod",
|
"name": "kanbanmod",
|
||||||
"version": "1.1.2",
|
"version": "1.1.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -31,12 +31,6 @@ async function getWekanActorNames() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const actorNames = wekanBoardRes.body.map((card) => {
|
const actorNames = wekanBoardRes.body.map((card) => {
|
||||||
if (!card.title) {
|
|
||||||
console.warn('Missing card title', card);
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const name = card.title.split(/\s+/).slice(0, 2).join(' ');
|
const name = card.title.split(/\s+/).slice(0, 2).join(' ');
|
||||||
|
|
||||||
if (name.includes('.')) {
|
if (name.includes('.')) {
|
||||||
|
@ -47,7 +41,7 @@ async function getWekanActorNames() {
|
||||||
return name;
|
return name;
|
||||||
;});
|
;});
|
||||||
|
|
||||||
return actorNames.filter(Boolean);
|
return actorNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
|
@ -58,7 +52,7 @@ async function init() {
|
||||||
const actorLineIndex = automodLines.findIndex((line) => line.includes(config.actorCommentKey)) + 1;
|
const actorLineIndex = automodLines.findIndex((line) => line.includes(config.actorCommentKey)) + 1;
|
||||||
const actorLine = automodLines[actorLineIndex];
|
const actorLine = automodLines[actorLineIndex];
|
||||||
|
|
||||||
const wekanActorNames = await getWekanActorNames();
|
const wekanActorNames= await getWekanActorNames();
|
||||||
const actorNames = [...config.baseActorNames, ...wekanActorNames];
|
const actorNames = [...config.baseActorNames, ...wekanActorNames];
|
||||||
const newActorLine = `title: ${JSON.stringify(actorNames)}`;
|
const newActorLine = `title: ${JSON.stringify(actorNames)}`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue