@docupace/pipeline 1.0.52 → 1.0.53
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/package.json +1 -1
- package/src/next/jira.js +11 -7
package/package.json
CHANGED
package/src/next/jira.js
CHANGED
|
@@ -34,15 +34,19 @@ export async function updateComponentVersion(issueKey, packageName, version) {
|
|
|
34
34
|
let currentValue = response.data.fields.customfield_10458 || '';
|
|
35
35
|
let components = new Map();
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
currentValue
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
try {
|
|
38
|
+
// Parse existing components
|
|
39
|
+
if (currentValue) {
|
|
40
|
+
currentValue.split(';').forEach((entry) => {
|
|
41
|
+
const [comp, ver] = entry.split(':');
|
|
42
|
+
components.set(comp, ver);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// Update or add new component version
|
|
46
|
+
} catch {
|
|
47
|
+
console.log('Patch version has incorrect data overriding');
|
|
43
48
|
}
|
|
44
49
|
|
|
45
|
-
// Update or add new component version
|
|
46
50
|
components.set(component, version);
|
|
47
51
|
|
|
48
52
|
// Convert back to string format
|