@@ -3,12 +3,37 @@ module.exports = {
3
3
prefix : "" ,
4
4
onlyMilestones : false ,
5
5
ignoreTagsWith : [ "v0.32.0" , "0.0.3" ] ,
6
+ ignoreLabels : [
7
+ "semver-major" ,
8
+ "semver-minor" ,
9
+ "semver-patch" ,
10
+ "closed" ,
11
+ "breaking-change" ,
12
+ "bug" ,
13
+ "enhancement" ,
14
+ "dependencies" ,
15
+ ] ,
6
16
tags : "all" ,
7
- groupBy : false ,
17
+ groupBy : {
18
+ "Major Changes" : [ "semver-major" , "breaking-change" ] ,
19
+ "Minor Changes" : [ "semver-minor" , "enhancement" ] ,
20
+ Dependencies : [ "dependencies" ] ,
21
+ "Bug Fixes" : [ "semver-patch" , "bug" ] ,
22
+ Other : [ "..." ] ,
23
+ } ,
8
24
changelogFilename : "CHANGELOG.md" ,
9
25
username : "node-saml" ,
10
26
repo : "passport-saml" ,
11
27
template : {
28
+ issue : function ( placeholders ) {
29
+ const parts = [
30
+ "-" ,
31
+ placeholders . labels ,
32
+ placeholders . name ,
33
+ `[${ placeholders . text } ](${ placeholders . url } )` ,
34
+ ] ;
35
+ return parts . filter ( ( _ ) => _ ) . join ( " " ) ;
36
+ } ,
12
37
release : function ( placeholders ) {
13
38
let dateParts = placeholders . date . split ( "/" ) ;
14
39
let placeholdersDate = new Date (
@@ -17,7 +42,24 @@ module.exports = {
17
42
Number ( dateParts [ 0 ] )
18
43
) ;
19
44
let isoDateString = placeholdersDate . toISOString ( ) . split ( "T" ) [ 0 ] ;
45
+ placeholders . body = placeholders . body . replace (
46
+ "*No changelog for this release.*" ,
47
+ "\n_No changelog for this release._"
48
+ ) ;
20
49
return `## ${ placeholders . release } (${ isoDateString } )\n${ placeholders . body } ` ;
21
50
} ,
51
+ group : function ( placeholders ) {
52
+ const iconMap = {
53
+ Enhancements : "🚀" ,
54
+ "Minor Changes" : "🚀" ,
55
+ "Bug Fixes" : "🐛" ,
56
+ Documentation : "📚" ,
57
+ "Technical Tasks" : "⚙️" ,
58
+ "Major Changes" : "💣" ,
59
+ Dependencies : "🔗" ,
60
+ } ;
61
+ const icon = iconMap [ placeholders . heading ] || "🙈" ;
62
+ return "\n#### " + icon + " " + placeholders . heading + ":\n" ;
63
+ } ,
22
64
} ,
23
65
} ;
0 commit comments