From 2b86e1f32652178628873844bed4676079ea835d Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Sun, 9 Jul 2023 20:18:01 +0100 Subject: [PATCH] fix numPatchesAfterCreate --- src/makePatch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/makePatch.ts b/src/makePatch.ts index 4dc0e6dc..d257d45f 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -82,7 +82,9 @@ export function makePatch({ } const numPatchesAfterCreate = - mode.type === "append" ? existingPatches.length + 1 : existingPatches.length + mode.type === "append" || existingPatches.length === 0 + ? existingPatches.length + 1 + : existingPatches.length const vcs = getPackageVCSDetails(packageDetails) const canCreateIssue = shouldRecommendIssue(vcs) &&