@@ -38,18 +38,20 @@ const (
38
38
features = ":sparkles: New Features"
39
39
bugs = ":bug: Bug Fixes"
40
40
documentation = ":book: Documentation"
41
+ proposals = ":memo: Proposals"
41
42
warning = ":warning: Breaking Changes"
42
43
other = ":seedling: Others"
43
44
unknown = ":question: Sort these by hand"
44
45
)
45
46
46
47
var (
47
48
outputOrder = []string {
49
+ proposals ,
48
50
warning ,
49
51
features ,
50
52
bugs ,
51
- documentation ,
52
53
other ,
54
+ documentation ,
53
55
unknown ,
54
56
}
55
57
@@ -134,6 +136,9 @@ func run() int {
134
136
key = documentation
135
137
body = strings .TrimPrefix (body , ":book:" )
136
138
body = strings .TrimPrefix (body , "📖" )
139
+ if strings .Contains (body , "CAEP" ) || strings .Contains (body , "proposal" ) {
140
+ key = proposals
141
+ }
137
142
case strings .HasPrefix (body , ":seedling:" ), strings .HasPrefix (body , "🌱" ):
138
143
key = other
139
144
body = strings .TrimPrefix (body , ":seedling:" )
@@ -152,6 +157,10 @@ func run() int {
152
157
}
153
158
body = fmt .Sprintf ("- %s" , body )
154
159
fmt .Sscanf (c .merge , "Merge pull request %s from %s" , & prNumber , & fork )
160
+ if key == documentation {
161
+ merges [key ] = append (merges [key ], prNumber )
162
+ continue
163
+ }
155
164
merges [key ] = append (merges [key ], formatMerge (body , prNumber ))
156
165
}
157
166
@@ -160,13 +169,25 @@ func run() int {
160
169
161
170
for _ , key := range outputOrder {
162
171
mergeslice := merges [key ]
163
- if len (mergeslice ) > 0 {
172
+ if len (mergeslice ) == 0 {
173
+ continue
174
+ }
175
+
176
+ switch key {
177
+ case documentation :
178
+ fmt .Printf (
179
+ ":book: Additionally, there have been %d contributions to our documentation and book. (%s) \n \n " ,
180
+ len (mergeslice ),
181
+ strings .Join (mergeslice , ", " ),
182
+ )
183
+ default :
164
184
fmt .Println ("## " + key )
165
185
for _ , merge := range mergeslice {
166
186
fmt .Println (merge )
167
187
}
168
188
fmt .Println ()
169
189
}
190
+
170
191
}
171
192
172
193
fmt .Println ("" )
0 commit comments