Skip to content

Commit

Permalink
Reduced the size of the report body
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed Sep 14, 2023
1 parent e1ed0b9 commit 0315580
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 6 additions & 1 deletion cli/src/utils/report/createInitiativeDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,19 @@ export const createInitiativeDetails = (

if (issueComments.length > 0 && reversedIssuesComments.slice(1).length > 1) {
initiativeDetails += `### Previous minutes \n`;
for (const comment of reversedIssuesComments.slice(1)) {
for (const comment of reversedIssuesComments.slice(1).slice(0,3)) {
initiativeDetails += `#### 📅 ${format(
new Date(comment.created),
'LLLL dd, yyyy HH:mm',
)} \n`;
initiativeDetails += `${comment.body} \n`;
initiativeDetails += `\n`;
}
if (reversedIssuesComments.length > 3) {
initiativeDetails += `\n`;
initiativeDetails += `<sub>ℹ️ Older minutes available in the Jira ticket.</sub> \n`;
initiativeDetails += `\n`;
}
}

return initiativeDetails;
Expand Down
14 changes: 8 additions & 6 deletions cli/src/utils/report/createReleasePipelineTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ export const createReleasePipelineTable = (
const progessTkts = `${progessTktsPrct}% ([${
completedIssues.length
}](${encodeURI(
`${userConfig.jira.host}/issues/?jql=key in (${completedIssues
.map((i: any) => i.key)
.join()})`,
// `${userConfig.jira.host}/issues/?jql=key in (${completedIssues
// .map((i: any) => i.key)
// .join()})`,
`${userConfig.jira.host}/issues/?jql=fixVersion = ${fixVersions[0]} and statusCategory = Done`,
)})/[${allIssues.length}](${encodeURI(
`${userConfig.jira.host}/issues/?jql=key in (${allIssues
.map((i: any) => i.key)
.join()})`,
// `${userConfig.jira.host}/issues/?jql=key in (${allIssues
// .map((i: any) => i.key)
// .join()})`,
`${userConfig.jira.host}/issues/?jql=fixVersion = ${fixVersions[0]}`,
)}))`;

for (const fixVersion of fixVersions) {
Expand Down

0 comments on commit 0315580

Please sign in to comment.