Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Feat [Config] [Build] [Back End] Increase Git Log (#261)
Browse files Browse the repository at this point in the history
- [+] feat(build.ts): increase the number of git log entries from 10 to 20
  • Loading branch information
H0llyW00dzZ authored Feb 7, 2024
1 parent a151f86 commit 2ab2253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/config/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ export const getBuildConfig = () => {
.toString()
.trim();
const commitHash: string[] = childProcess
.execSync('git log --pretty=format:"%H" -n 10')
.execSync('git log --pretty=format:"%H" -n 20')
.toString()
.trim()
.split("\n");
const commitMessage: string = childProcess
.execSync('git log --pretty=format:"%B" -n 10')
.execSync('git log --pretty=format:"%B" -n 20')
.toString()
.trim();
const Author: string = childProcess
.execSync('git log --pretty=format:"%an" -n 1')
.toString()
.trim();
const coAuthorLine: string = childProcess
.execSync('git log --format="%h %(trailers:key=Co-authored-by)" -n 10')
.execSync('git log --format="%h %(trailers:key=Co-authored-by)" -n 20')
.toString()
.trim();
const coAuthorMatch: RegExpMatchArray | null = coAuthorLine.match(
Expand Down

0 comments on commit 2ab2253

Please sign in to comment.