Skip to content

Commit

Permalink
fix numPatchesAfterCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
ds300 committed Jul 12, 2023
1 parent 6855cc7 commit 2b86e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/makePatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit 2b86e1f

Please sign in to comment.