1
+ module . exports = {
2
+ types : [
3
+ { types : [ "feat" , "feature" ] , label : "✨ New Features" } ,
4
+ { types : [ "fix" , "bugfix" ] , label : "🐛 Bugfixes" } ,
5
+ { types : [ "improvements" , "enhancement" ] , label : "🔨 Improvements" } ,
6
+ { types : [ "perf" ] , label : "🏎️ Performance Improvements" } ,
7
+ { types : [ "build" , "ci" ] , label : "🏗️ Build System" } ,
8
+ { types : [ "refactor" ] , label : "🪚 Refactors" } ,
9
+ { types : [ "doc" , "docs" ] , label : "📚 Documentation Changes" } ,
10
+ { types : [ "test" , "tests" ] , label : "🔍 Tests" } ,
11
+ { types : [ "style" ] , label : "💅 Code Style Changes" } ,
12
+ { types : [ "chore" ] , label : "🧹 Chores" } ,
13
+ { types : [ "other" ] , label : "Other Changes" } ,
14
+ ] ,
15
+
16
+ excludeTypes : [ "other" ] ,
17
+
18
+ renderTypeSection : function ( label , commits ) {
19
+ let text = `\n## ${ label } \n` ;
20
+ commits . forEach ( ( commit ) => {
21
+ const scope = commit . scope ? `**${ commit . scope } **: ` : ''
22
+ text += `- [\`${ commit . sha . substring ( 0 , 7 ) } \`](${ commit . url } ) ${ scope } ${ commit . subject } \n` ;
23
+ } ) ;
24
+ return text ;
25
+ } ,
26
+
27
+ renderChangelog : function ( release , changes ) {
28
+ const now = new Date ( ) ;
29
+ return `# ${ release } - ${ now . toISOString ( ) . substr ( 0 , 10 ) } \n` + changes + "\n\n" ;
30
+ } ,
31
+ } ;
0 commit comments