Skip to content

Commit

Permalink
Merge pull request #2426 from Zweer/main
Browse files Browse the repository at this point in the history
Fixing git `2.43.0` max number issue #2425
  • Loading branch information
hipstersmoothie authored Feb 22, 2024
2 parents 7a6f0ae + 2a41d8d commit 432e152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/auto-make-changelog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ describe("Auto", () => {

await auto.changelog({ from: "v1.0.0" });
expect(addToChangelog).toHaveBeenCalled();
});
}, 10000);
});
3 changes: 2 additions & 1 deletion packages/core/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 432e152

Please sign in to comment.