From aa43e2fe42955b43b9c8c6cfe4d108592eb65b67 Mon Sep 17 00:00:00 2001 From: Ville Immonen Date: Sun, 27 Nov 2016 12:06:57 +0200 Subject: [PATCH] Convert label name to lowercase before matching Lerna Changelog didn't work with labels having uppercase letters because it converted the configured label names to lowercase, but compared it with the actual labels without lowercasing them first. This change fixes the issue by converting both names to lowercase before comparing them. --- src/Changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Changelog.js b/src/Changelog.js index 30256f09..07085b3c 100644 --- a/src/Changelog.js +++ b/src/Changelog.js @@ -190,7 +190,7 @@ export default class Changelog { logs.forEach(function(log) { var labels = log.labels.map(function(label) { - return label.name; + return label.name.toLowerCase(); }); if (labels.indexOf(label.toLowerCase()) >= 0) {