diff --git a/packages/core/src/git.ts b/packages/core/src/git.ts index 730443a59..09dccc6e2 100644 --- a/packages/core/src/git.ts +++ b/packages/core/src/git.ts @@ -367,9 +367,10 @@ export default class Git { ? await execPromise("git", ["rev-parse", start]) : ""; + const maxNumber = 2147483647; const log = await gitlog({ repo: process.cwd(), - number: Number.MAX_SAFE_INTEGER, + number: maxNumber, fields: ["hash", "authorName", "authorEmail", "rawBody"], // If start === firstCommit then we want to include that commit in the changelog // Otherwise it was that last release and should not be included in the release.