diff --git a/tools/bump-blocksuite/index.js b/tools/bump-blocksuite/index.js index dd0633875..db8a216aa 100644 --- a/tools/bump-blocksuite/index.js +++ b/tools/bump-blocksuite/index.js @@ -95,6 +95,9 @@ for (const oid of repo .revWalk() .push(latest.id()) .setSorting(Sort.Time & Sort.Topological)) { + if (oid.startsWith(oldHash)) { + break; + } const commit = repo.findCommit(oid); const summary = commit.summary(); if (summary.startsWith('feat')) { @@ -106,9 +109,6 @@ for (const oid of repo } else { commits.Misc.push(commit); } - if (oid.startsWith(oldHash)) { - break; - } } clipboard.setText(await formatCommits(commits));