Skip to content

Commit 2c205b6

Browse files
committed
fix(import): milestone
1 parent 9919fc6 commit 2c205b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const importFile = (octokit, file, values) => {
5050

5151
// if we have a milestone column, pass that.
5252
if (milestoneIndex > -1 && row[milestoneIndex] !== "") {
53-
sendObj.issue.milestone = row[milestoneIndex];
53+
sendObj.issue.milestone = Number(row[milestoneIndex]);
5454
}
5555

5656
// if we have an assignee column, pass that.

test/6.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
title,body,labels,milestone
2+
Test 1, This is the test1 desc, bug,1
3+
Test 2, This is the test2 desc, question,2

0 commit comments

Comments
 (0)