Skip to content

Commit

Permalink
fix(import): milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr committed Mar 24, 2023
1 parent 9919fc6 commit 2c205b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion import.js
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions 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

0 comments on commit 2c205b6

Please sign in to comment.