Skip to content

Commit 4863481

Browse files
committed
chore: Fix changelog script
1 parent 791eaa3 commit 4863481

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/update-changelog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { generateMarkDown, getCurrentGitBranch, loadChangelogConfig } from 'chan
55
import { consola } from 'consola'
66
import { determineBumpType, getContributors, getLatestCommits, getLatestReleasedTag, getLatestTag, getPreviousReleasedCommits, loadWorkspace } from './_utils'
77

8+
const handleSeparateBranch = true
9+
810
async function main () {
911
const releaseBranch = await getCurrentGitBranch()
1012
const workspace = await loadWorkspace(process.cwd())
@@ -13,7 +15,7 @@ async function main () {
1315
const prevMessages = new Set(handleSeparateBranch ? await getPreviousReleasedCommits().then(r => r.map(c => c.message)) : [])
1416

1517
const commits = await getLatestCommits().then(commits => commits.filter(
16-
c => config.types[c.type] && !(c.type === 'chore' && c.scope === 'deps' && !c.isBreaking),
18+
c => config.types[c.type] && !(c.type === 'chore' && c.scope === 'deps') && !prevMessages.has(c.message),
1719
))
1820
const bumpType = await determineBumpType() || 'patch'
1921

0 commit comments

Comments
 (0)