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

Commit

Permalink
fix fix date
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Oct 23, 2024
1 parent 33a145b commit d119287
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ function getPrNumber(teamName: string): number {
const commit = $`git log --format=%H teams/${teamName}/${latestFile}`.split(
'\n',
)[0]
const oldestMergeCommit = $`git rev-list --merges ${commit}^..HEAD`.split(
'\n',
)[0]
const oldestMergeCommit =
$`git rev-list --reverse --merges ${commit}^..HEAD`.split('\n')[0]
const mergeCommitMessage = $`git log --format=%B -n 1 ${oldestMergeCommit}`
const title = mergeCommitMessage.split('\n')[0]
const prNumber = title.match(/Merge pull request #(\d+)/)?.[1]
Expand Down

0 comments on commit d119287

Please sign in to comment.