From 2c205b69e1e31934d27d436d134e1822719b0a1d Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Thu, 23 Mar 2023 23:29:03 -0500 Subject: [PATCH] fix(import): milestone --- import.js | 2 +- test/6.csv | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/6.csv diff --git a/import.js b/import.js index 74eed55..3d93131 100644 --- a/import.js +++ b/import.js @@ -50,7 +50,7 @@ const importFile = (octokit, file, values) => { // if we have a milestone column, pass that. if (milestoneIndex > -1 && row[milestoneIndex] !== "") { - sendObj.issue.milestone = row[milestoneIndex]; + sendObj.issue.milestone = Number(row[milestoneIndex]); } // if we have an assignee column, pass that. diff --git a/test/6.csv b/test/6.csv new file mode 100644 index 0000000..ad1f03a --- /dev/null +++ b/test/6.csv @@ -0,0 +1,3 @@ +title,body,labels,milestone +Test 1, This is the test1 desc, bug,1 +Test 2, This is the test2 desc, question,2 \ No newline at end of file