From 4751081919d1494e0ccb23ecb928b45a90dc891e Mon Sep 17 00:00:00 2001 From: EYHN Date: Tue, 7 May 2024 06:43:53 +0000 Subject: [PATCH] chore: fix blocksuite changelog commit range (#6791) --- tools/bump-blocksuite/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));