File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lib/node_modules/@stdlib/_tools/changelog/generate/lib Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2020
2121// MODULES //
2222
23+ var contains = require ( '@stdlib/assert/contains' ) ;
24+ var isDigitString = require ( '@stdlib/assert/is-digit-string' ) ;
2325var filter = require ( '@stdlib/array/base/filter' ) ;
2426var map = require ( '@stdlib/utils/map' ) ;
2527var collectField = require ( './collect_field.js' ) ;
@@ -28,6 +30,11 @@ var sectionEnd = require( './section_end.js' );
2830var heading = require ( './heading.js' ) ;
2931
3032
33+ // VARIABLES //
34+
35+ var VERBS = [ 'Closes' , 'Fixes' , 'Resolves' ] ;
36+
37+
3138// FUNCTIONS //
3239
3340/**
@@ -38,7 +45,7 @@ var heading = require( './heading.js' );
3845* @returns {boolean } boolean indicating whether a mention references closing an issue
3946*/
4047function isClosingIssue ( mention ) {
41- return mention . action === 'Closes' || mention . action === 'Fixes' || mention . action === 'Resolves' ;
48+ return contains ( VERBS , mention . action ) && isDigitString ( mention . ref ) ;
4249}
4350
4451/**
You can’t perform that action at this time.
0 commit comments