Skip to content

Commit 183a2b6

Browse files
committed
Include last tag when tags option is all
1 parent 74e1744 commit 183a2b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/Gren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ class Gren {
865865
const range = 2;
866866
const sortedReleaseDates = this._sortReleasesByDate(releaseDates);
867867

868-
if (sortedReleaseDates.length === 1 || this.options.tags === 'all') {
868+
if (sortedReleaseDates.length === 1 || this.options.tags.indexOf('all') >= 0) {
869869
sortedReleaseDates.push({
870870
id: 0,
871871
date: new Date(0)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)