Merge pull request #8881 from backstage/blam/fix-dep

Trim the commit message on dependabot script so that it doesn't break prettier
This commit is contained in:
Ben Lambert
2022-01-12 11:07:29 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/backend-common': patch
---
build(deps-dev): bump `http-errors` from 1.8.0 to 2.0.0
build(deps-dev): bump `http-errors` from 1.8.0 to 2.0.0
@@ -34,8 +34,8 @@ jobs:
async function createChangeset(fileName, commitMessage, packages) {
const pkgs = packages.map(pkg => `'${pkg}': patch`).join('\n');
const message = commitMessage.replace(/([bB])ump ([\S]+)/, '$1ump `$2`');
const body = `---\n${pkgs}\n---\n\n${message}`;
const message = commitMessage.replace(/([bB])ump ([\S]+)/, '$1ump `$2`').trim();
const body = `---\n${pkgs}\n---\n\n${message}\n`;
await fs.writeFile(fileName, body);
}