Skip to content

Commit

Permalink
Include last tag when tags option is all
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa committed Oct 14, 2017
1 parent 74e1744 commit 183a2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/Gren.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ class Gren {
const range = 2;
const sortedReleaseDates = this._sortReleasesByDate(releaseDates);

if (sortedReleaseDates.length === 1 || this.options.tags === 'all') {
if (sortedReleaseDates.length === 1 || this.options.tags.indexOf('all') >= 0) {
sortedReleaseDates.push({
id: 0,
date: new Date(0)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 183a2b6

Please sign in to comment.