File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ import shell from 'shelljs'
6
6
const FIXES_REGEX = / ^ C H A N G E L O G - F I X E S : ( .* ) / gm
7
7
const NEW_REGEX = / ^ C H A N G E L O G - N E W : ( .* ) / gm
8
8
9
+ // Template text for the changelog that should be ignored.
10
+ const CHANGELOG_TEMPLATE_TEXT = [
11
+ 'Insert a single changelog entry here' ,
12
+ 'Insert ANOTHER changelog entry here'
13
+ ]
14
+
9
15
export interface Changelog {
10
16
added : string [ ] | undefined
11
17
fixed : string [ ] | undefined
@@ -197,7 +203,10 @@ function parseChangelogFromPrDescriptions(prDescriptions: string[]): Changelog {
197
203
const fixMatchesArray = [ ...fixMatches ]
198
204
for ( const fixMatch of fixMatchesArray ) {
199
205
const fixMatchString = fixMatch [ 1 ] . trim ( )
200
- if ( fixMatchString ) {
206
+ if (
207
+ fixMatchString &&
208
+ ! CHANGELOG_TEMPLATE_TEXT . includes ( fixMatchString )
209
+ ) {
201
210
changelog_fixed . push ( fixMatchString )
202
211
}
203
212
}
@@ -208,7 +217,10 @@ function parseChangelogFromPrDescriptions(prDescriptions: string[]): Changelog {
208
217
const addMatchesArray = [ ...addMatches ]
209
218
for ( const addMatch of addMatchesArray ) {
210
219
const addMatchString = addMatch [ 1 ] . trim ( )
211
- if ( addMatchString ) {
220
+ if (
221
+ addMatchString &&
222
+ ! CHANGELOG_TEMPLATE_TEXT . includes ( addMatchString )
223
+ ) {
212
224
changelog_new . push ( addMatchString )
213
225
}
214
226
}
You can’t perform that action at this time.
0 commit comments