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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user