[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 993e6c6567
commit 2b2b40e6d8
+5 -1
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({