commit 9824de4807c659b35c39c7d161b52e452762c056
parent 1ba13ee0c685847ec54363284db7119b3cad8d5d
Author: Takeru Yamada <takeru.yamada@access-company.com>
Date: Mon, 9 Nov 2020 08:31:41 +0900
[#22] Import case insensitive matching (#33)
Co-authored-by: Gavin Rehkemper <gavin@gavinr.com>
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/import.js b/import.js
@@ -16,7 +16,7 @@ const importFile = (octokit, file, values) => {
},
(err, csvRows) => {
if (err) throw err;
- var cols = csvRows[0];
+ var cols = csvRows[0].map(col => col.toLowerCase());
csvRows.shift();
// get indexes of the fields we need
diff --git a/test/uppercaseTitle.csv b/test/uppercaseTitle.csv
@@ -0,0 +1,3 @@
+Title,Description,Labels
+Test 1, This is the test1 desc, bug
+Test 2, This is the test2 desc, question+
\ No newline at end of file