From 6d785dc98f827a1c31e487a1a64517ba110cdb50 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 20 Mar 2024 20:31:23 +0000 Subject: [PATCH] chore: ensure changesets generated for dependabot pass prettier (#5325) --- .../__tests__/generate-dependabot-pr-changesets.test.ts | 4 ++-- tools/dependabot/generate-dependabot-pr-changesets.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/dependabot/__tests__/generate-dependabot-pr-changesets.test.ts b/tools/dependabot/__tests__/generate-dependabot-pr-changesets.test.ts index 801d65fd8dce..efb15dc1c93a 100644 --- a/tools/dependabot/__tests__/generate-dependabot-pr-changesets.test.ts +++ b/tools/dependabot/__tests__/generate-dependabot-pr-changesets.test.ts @@ -163,10 +163,10 @@ describe("writeChangeSet()", () => { `".changeset/dependabot-update-1234.md"` ); expect((writeFileSync as Mock).mock.lastCall[1]).toMatchInlineSnapshot(` - " - --- + "--- "package-name": patch --- + chore: update dependencies of "@namespace/package" package The following dependency versions have been updated: diff --git a/tools/dependabot/generate-dependabot-pr-changesets.ts b/tools/dependabot/generate-dependabot-pr-changesets.ts index ef912e9c1767..77e129cd8496 100644 --- a/tools/dependabot/generate-dependabot-pr-changesets.ts +++ b/tools/dependabot/generate-dependabot-pr-changesets.ts @@ -155,7 +155,7 @@ export function writeChangeSet( ): void { writeFileSync( `.changeset/dependabot-update-${prNumber}.md`, - "\n" + changesetHeader + "\n" + commitMessage + "\n" + changesetHeader + "\n\n" + commitMessage + "\n" ); }