Skip to content

Commit 2b86e1f

Browse files
committed
fix numPatchesAfterCreate
1 parent 6855cc7 commit 2b86e1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/makePatch.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ export function makePatch({
8282
}
8383

8484
const numPatchesAfterCreate =
85-
mode.type === "append" ? existingPatches.length + 1 : existingPatches.length
85+
mode.type === "append" || existingPatches.length === 0
86+
? existingPatches.length + 1
87+
: existingPatches.length
8688
const vcs = getPackageVCSDetails(packageDetails)
8789
const canCreateIssue =
8890
shouldRecommendIssue(vcs) &&

0 commit comments

Comments
 (0)