File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ First release
199
199
200
200
#
201
201
202
- [ unreleased ] : https://github.com/EndBug/add-and-commit/compare/v5.3 .0...HEAD
202
+ [ unreleased ] : https://github.com/EndBug/add-and-commit/compare/v6.1 .0...HEAD
203
203
[ 1.0.0 ] : https://github.com/EndBug/add-and-commit/tree/v1.0.0
204
204
[ 2.0.0 ] : https://github.com/EndBug/add-and-commit/compare/v1.0.0...v2.0.0
205
205
[ 2.1.0 ] : https://github.com/EndBug/add-and-commit/compare/v2.0.0...v2.1.0
Original file line number Diff line number Diff line change @@ -27,13 +27,11 @@ arr[1] =
27
27
futureChangelog = arr . join ( '## [Unreleased]' )
28
28
29
29
// Update footer
30
- arr = futureChangelog
31
- . split ( '\n' )
32
- . map ( ( line ) =>
33
- line . startsWith ( '[Unreleased]' )
34
- ? `[Unreleased]: https://github.com/EndBug/add-and-commit/compare/v${ currentVersion } ...HEAD`
35
- : line
36
- )
30
+ arr = futureChangelog . split ( '\n' ) . map ( ( line ) =>
31
+ line . startsWith ( '[unreleased]' ) // The link ref is lowercase because of prettier
32
+ ? `[unreleased]: https://github.com/EndBug/add-and-commit/compare/v${ currentVersion } ...HEAD`
33
+ : line
34
+ )
37
35
38
36
const lastVersion = ( [ ...arr ] . reverse ( ) [ 1 ] ?. match ( / \[ ( [ ^ \] [ ] * ) ] / ) ||
39
37
[ ] ) [ 0 ] . replace ( / [ \[ \] ' ] + / g, '' ) // eslint-disable-line no-useless-escape
You can’t perform that action at this time.
0 commit comments