chore: fix blocksuite changelog commit range (#6791)

This commit is contained in:
EYHN 2024-05-07 06:43:53 +00:00
parent ee9e8bf56c
commit 4751081919
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C

View File

@ -95,6 +95,9 @@ for (const oid of repo
.revWalk() .revWalk()
.push(latest.id()) .push(latest.id())
.setSorting(Sort.Time & Sort.Topological)) { .setSorting(Sort.Time & Sort.Topological)) {
if (oid.startsWith(oldHash)) {
break;
}
const commit = repo.findCommit(oid); const commit = repo.findCommit(oid);
const summary = commit.summary(); const summary = commit.summary();
if (summary.startsWith('feat')) { if (summary.startsWith('feat')) {
@ -106,9 +109,6 @@ for (const oid of repo
} else { } else {
commits.Misc.push(commit); commits.Misc.push(commit);
} }
if (oid.startsWith(oldHash)) {
break;
}
} }
clipboard.setText(await formatCommits(commits)); clipboard.setText(await formatCommits(commits));