mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
ci: handle the blocksuite commit is not found on current branch (#8061)
This commit is contained in:
@@ -49,6 +49,12 @@ async function getChangeLog(repo, previousCommit, currentCommit) {
|
||||
|
||||
if (currentCommit) {
|
||||
const commit = repo.findCommit(currentCommit);
|
||||
if (!commit) {
|
||||
console.log(
|
||||
`Current commit ${currentCommit} not found in ${repo.path()}`
|
||||
);
|
||||
return '';
|
||||
}
|
||||
revWalk.push(commit.id());
|
||||
} else {
|
||||
revWalk.pushHead();
|
||||
|
||||
Reference in New Issue
Block a user