Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Oct 23, 2024
1 parent 94ed6bc commit 5b41e69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function getPrNumber(teamName: string): number {
return bTime - aTime
})[0]

const commit = $`git log --format=%H teams/${teamName}/${latestFile}`
const commit = $`git log --format=%H teams/${teamName}/${latestFile}`.split(
'\n',
)[0]
const oldestMergeCommit =
$`git rev-list --reverse --merges ${commit}^..HEAD`.split('\n')[0]
const mergeCommitMessage = $`git log --format=%B -n 1 ${oldestMergeCommit}`
Expand Down

0 comments on commit 5b41e69

Please sign in to comment.