File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33
4+ ## [ v0.0.1] ( https://github.com/soybeanjs/changelog/compare/2681a2f0d5feedf38f5c1b4754202dca1976948d...v0.0.1 ) (2023-06-07)
45
6+ ###   ;  ;  ; 📖 Documentation
57
8+ - ** projects** : add CHANGELOG.md   ; -  ; by @soybeanjs [ <samp >(029ea)</samp >] ( https://github.com/soybeanjs/changelog/commit/029eaa7 )
69
7- ## [ v0.0.1] ( https://github.com/soybeanjs/changelog/compare/...main ) (23-06-07)
8-
9- ###   ;  ;  ; 📖 Documentation
10+ ###   ;  ;  ; 🏡 Chore
1011
11- - ** projects** : Add CHANGELOG.md   ; -  ; by @soybeanjs [ <samp >(029ea )</samp >] ( https://github.com/soybeanjs/changelog/commit/029eaa7 )
12+ - ** projects** : release v0.0.1   ; -  ; by @soybeanjs [ <samp >(e227f )</samp >] ( https://github.com/soybeanjs/changelog/commit/e227fd4 )
1213
1314###   ;  ;  ; ❤️ Contributors
1415
Original file line number Diff line number Diff line change @@ -260,13 +260,13 @@ export async function getGitCommitsAndResolvedAuthors(
260260 for await ( const commit of commits ) {
261261 const resolvedAuthors : ResolvedAuthor [ ] = [ ] ;
262262
263- for await ( const [ index , author ] of Object . entries ( commit . authors ) ) {
263+ for await ( const [ index , author ] of commit . authors . entries ( ) ) {
264264 const { email, name } = author ;
265265
266266 if ( email && name ) {
267267 const commitHashes : string [ ] = [ ] ;
268268
269- if ( index === '0' ) {
269+ if ( index === 0 ) {
270270 commitHashes . push ( commit . shortHash ) ;
271271 }
272272
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ export async function getTotalChangelogMarkdown(options?: Partial<ChangelogOptio
3838
3939 const tags = getFromToTags ( opts . tags ) ;
4040
41+ if ( tags . length === 0 ) {
42+ return getChangelogMarkdown ( opts ) ;
43+ }
44+
4145 bar ?. start ( tags . length , 0 ) ;
4246
4347 let markdown = '' ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function createDefaultOptions() {
3636 to : '' ,
3737 tags : [ ] ,
3838 tagDateMap : new Map ( ) ,
39- capitalize : true ,
39+ capitalize : false ,
4040 emoji : true ,
4141 titles : {
4242 breakingChanges : '🚨 Breaking Changes'
You can’t perform that action at this time.
0 commit comments