Skip to content

Commit

Permalink
chore: adjust templating to match styling
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-enchi committed Apr 26, 2023
1 parent 11df6ff commit 3332fc8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/plugins/cargo-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function getChangelogDepsNotes(
const origDepVer = depVer(originalScope[depType]?.[depName]);
if (currentDepVer !== origDepVer) {
depUpdates.push(
`\n * ${depName} bumped from ${origDepVer} to ${currentDepVer}`
`\n - ${depName} bumped from ${origDepVer} to ${currentDepVer}`
);
}
}
Expand All @@ -451,14 +451,14 @@ function getChangelogDepsNotes(
}

for (const [dt, notes] of updates) {
depUpdateNotes += `\n * ${dt}`;
depUpdateNotes += `\n - ${dt}`;
for (const note of notes) {
depUpdateNotes += note;
}
}

if (depUpdateNotes) {
return `* The following workspace dependencies were updated${depUpdateNotes}`;
return `- The following workspace dependencies were updated${depUpdateNotes}`;
}
return '';
}
4 changes: 2 additions & 2 deletions src/plugins/maven-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,14 +486,14 @@ function getChangelogDepsNotes(
const depUpdateNotes = [];
for (const dependencyUpdate of dependencyUpdates) {
depUpdateNotes.push(
`\n * ${dependencyUpdate.name} bumped to ${dependencyUpdate.version}`
`\n - ${dependencyUpdate.name} bumped to ${dependencyUpdate.version}`
);
logger.info(
`bumped ${dependencyUpdate.name} to ${dependencyUpdate.version}`
);
}
if (depUpdateNotes.length > 0) {
return `* The following workspace dependencies were updated${depUpdateNotes.join()}`;
return `- The following workspace dependencies were updated${depUpdateNotes.join()}`;
}
return '';
}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/node-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,15 @@ function getChangelogDepsNotes(
const origDepVer = original[depType]?.[depName];
if (currentDepVer !== origDepVer) {
depUpdates.push(
`\n * ${depName} bumped from ${origDepVer} to ${currentDepVer}`
`\n - ${depName} bumped from ${origDepVer} to ${currentDepVer}`
);
//handle case when "workspace:" version is used
} else if (
currentDepVer.startsWith('workspace:') &&
updateVersions.get(depName) !== undefined
) {
depUpdates.push(
`\n * ${depName} bumped to ${updateVersions
`\n - ${depName} bumped to ${updateVersions
.get(depName)
?.toString()}`
);
Expand All @@ -429,13 +429,13 @@ function getChangelogDepsNotes(
}
}
for (const [dt, notes] of updates) {
depUpdateNotes += `\n * ${dt}`;
depUpdateNotes += `\n - ${dt}`;
for (const note of notes) {
depUpdateNotes += note;
}
}
if (depUpdateNotes) {
return `* The following workspace dependencies were updated${depUpdateNotes}`;
return ` The following workspace dependencies were updated${depUpdateNotes}`;
}
return '';
}

0 comments on commit 3332fc8

Please sign in to comment.