Skip to content

Commit

Permalink
chore: Fix changelog script
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDredd committed Feb 16, 2025
1 parent 791eaa3 commit 4863481
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { generateMarkDown, getCurrentGitBranch, loadChangelogConfig } from 'chan
import { consola } from 'consola'
import { determineBumpType, getContributors, getLatestCommits, getLatestReleasedTag, getLatestTag, getPreviousReleasedCommits, loadWorkspace } from './_utils'

const handleSeparateBranch = true

async function main () {
const releaseBranch = await getCurrentGitBranch()
const workspace = await loadWorkspace(process.cwd())
Expand All @@ -13,7 +15,7 @@ async function main () {
const prevMessages = new Set(handleSeparateBranch ? await getPreviousReleasedCommits().then(r => r.map(c => c.message)) : [])

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

Expand Down

0 comments on commit 4863481

Please sign in to comment.