[DevTools] Fix Issue in release script where commits for the last DevTools release are undefined #22233

This commit is contained in:
Luna Ruan 2021-09-01 12:56:39 -07:00 committed by GitHub
parent ac8fc34e61
commit 2b7214033e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -115,8 +115,12 @@ async function getPreviousCommitSha() {
const choices = [];
const lines = await execRead(`
git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${PACKAGE_PATHS[0]}
git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${join(
ROOT_PATH,
PACKAGE_PATHS[0]
)}
`);
lines.split('\n').forEach((line, index) => {
const [hash, message, date] = line.split(':::');
choices.push({