File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { execSync } from 'node:child_process'
2
2
import { $fetch } from 'ofetch'
3
3
import { inc } from 'semver'
4
- import { generateMarkDown , loadChangelogConfig } from 'changelogen'
4
+ import { generateMarkDown , getCurrentGitBranch , loadChangelogConfig } from 'changelogen'
5
5
import { determineBumpType , getLatestCommits , loadWorkspace } from './_utils'
6
6
7
- const releaseBranch = process . env . GITHUB_REF_NAME || 'main'
8
-
9
7
async function main ( ) {
8
+ const releaseBranch = await getCurrentGitBranch ( )
10
9
const workspace = await loadWorkspace ( process . cwd ( ) )
11
- const config = await loadChangelogConfig ( process . cwd ( ) , {
12
- } )
10
+ const config = await loadChangelogConfig ( process . cwd ( ) , { } )
13
11
14
12
const commits = await getLatestCommits ( ) . then ( commits => commits . filter (
15
13
c => config . types [ c . type ] && ! ( c . type === 'chore' && c . scope === 'deps' && ! c . isBreaking )
You can’t perform that action at this time.
0 commit comments