@shortcut-cli/shortcut-cli 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/stories.js +2 -2
- package/build/package.js +1 -1
- package/package.json +1 -1
package/build/lib/stories.js
CHANGED
|
@@ -103,7 +103,7 @@ const findEntity = (entities, id) => {
|
|
|
103
103
|
if (entities.get(id)) return entities.get(id);
|
|
104
104
|
if (isNumber(id) && Number(id.toString())) return entities.get(Number(id.toString()));
|
|
105
105
|
const match = new RegExp(`${id}`, "i");
|
|
106
|
-
return
|
|
106
|
+
return Array.from(entities.values()).filter((s) => !!s.name.match(match))[0];
|
|
107
107
|
};
|
|
108
108
|
const findProject = (entities, project) => findEntity(entities.projectsById, project);
|
|
109
109
|
const findGroup = (entities, group) => findEntity(entities.groupsById, group);
|
|
@@ -112,7 +112,7 @@ const findEpic = (entities, epicName) => findEntity(entities.epicsById, epicName
|
|
|
112
112
|
const findIteration = (entities, iterationName) => findEntity(entities.statesById, iterationName);
|
|
113
113
|
const findOwnerIds = (entities, owners) => {
|
|
114
114
|
const ownerMatch = new RegExp(owners.split(",").join("|"), "i");
|
|
115
|
-
return
|
|
115
|
+
return Array.from(entities.membersById.values()).filter((m) => !!`${m.id} ${m.profile.name} ${m.profile.mention_name}`.match(ownerMatch)).map((m) => m.id);
|
|
116
116
|
};
|
|
117
117
|
const findLabelNames = (entities, label) => {
|
|
118
118
|
const labelMatch = new RegExp(label.split(",").join("|"), "i");
|
package/build/package.js
CHANGED