diff --git a/packages/core/src/__tests__/auto-make-changelog.test.ts b/packages/core/src/__tests__/auto-make-changelog.test.ts index 4511b552d..51ceccd47 100644 --- a/packages/core/src/__tests__/auto-make-changelog.test.ts +++ b/packages/core/src/__tests__/auto-make-changelog.test.ts @@ -80,5 +80,5 @@ describe("Auto", () => { await auto.changelog({ from: "v1.0.0" }); expect(addToChangelog).toHaveBeenCalled(); - }); + }, 10000); }); 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.