@cmflow/cli 2.0.2 → 2.0.4
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/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmflow/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "An awesome Git Flow",
|
|
5
5
|
"author": "camfou",
|
|
6
6
|
"license": "MIT",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"lint_fix": "eslint --fix",
|
|
88
88
|
"release": "node bin/cmrelease.js",
|
|
89
89
|
"release_dry_run": "node bin/cmrelease.js --dry-run",
|
|
90
|
-
"jira_releases": "node --env-file=.env bin/cm.js jira-releases --project-id CMAB --component API --tag 0.3241.
|
|
90
|
+
"jira_releases": "node --env-file=.env bin/cm.js jira-releases --project-id CMAB --component API --tag 0.3241.3 --verbose"
|
|
91
91
|
},
|
|
92
92
|
"husky": {
|
|
93
93
|
"hooks": {
|
|
@@ -62,6 +62,8 @@ export class JiraReleases {
|
|
|
62
62
|
return jiraIssueMoveTo(issue, {
|
|
63
63
|
id: "18",
|
|
64
64
|
name: "Livré en production"
|
|
65
|
+
}).catch((er) => {
|
|
66
|
+
console.error(chalk.red(figures.cross), `Error moving issue ${issue.key} to production: ${er.message}`);
|
|
65
67
|
});
|
|
66
68
|
})
|
|
67
69
|
);
|
|
@@ -80,6 +82,7 @@ Nous allons livrer en production la version ${context.tag} de l'${context.compon
|
|
|
80
82
|
Au menu de cette livraison :
|
|
81
83
|
|
|
82
84
|
${context.releases
|
|
85
|
+
.reverse()
|
|
83
86
|
.map((release) => {
|
|
84
87
|
const issues = release.issues.map((issue) => {
|
|
85
88
|
return ` - ${TYPES[issue.fields.issuetype.name] || issue.fields.issuetype.name}(${issue.key}): ${getSummary(issue)}`;
|
|
@@ -23,6 +23,9 @@ export async function jiraGetReleasesAndIssues(projectId, component, tagVersion)
|
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
25
25
|
})
|
|
26
|
+
.sort((ra, rb) => {
|
|
27
|
+
return semver.rcompare(ra.version, rb.version);
|
|
28
|
+
})
|
|
26
29
|
.map(async (release) => {
|
|
27
30
|
const { issues } = await getJiraVersionRelatedIssues(projectId, release.name);
|
|
28
31
|
release.issues = issues;
|
|
@@ -36,5 +39,5 @@ export async function jiraGetReleasesAndIssues(projectId, component, tagVersion)
|
|
|
36
39
|
...others.filter((release) => {
|
|
37
40
|
return !release.released;
|
|
38
41
|
})
|
|
39
|
-
];
|
|
42
|
+
].reverse();
|
|
40
43
|
}
|