commit 70ca500091cba1cce7545e91fd72e6423f004d2f
parent 439ca0bcc3172852964d3e7d4c9dd583dd78acf6
Author: Gavin Rehkemper <gavin@gavinr.com>
Date: Sun, 7 Feb 2021 18:56:20 -0600
Merge branch 'master' into semantic-release
Diffstat:
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
@@ -16,7 +16,7 @@ Instructions for exporting or importing:
### To Import Issues
-Currently imports title, description, labels, status (closed or open) and milestones.
+Currently imports title, body, labels, status (closed or open) and milestones.
```
githubCsvTools myFile.csv
diff --git a/import.js b/import.js
@@ -21,7 +21,7 @@ const importFile = (octokit, file, values) => {
// get indexes of the fields we need
var titleIndex = cols.indexOf("title");
- var bodyIndex = cols.indexOf("description");
+ var bodyIndex = cols.indexOf("body");
var labelsIndex = cols.indexOf("labels");
var milestoneIndex = cols.indexOf("milestone");
var assigneeIndex = cols.indexOf("assignee");
diff --git a/test/1.csv b/test/1.csv
@@ -1,3 +1,3 @@
-title,description,labels
+title,body,labels
Test 1, This is the test1 desc, bug
Test 2, This is the test2 desc, question
\ No newline at end of file
diff --git a/test/2.csv b/test/2.csv
@@ -1,3 +1,3 @@
-title,description,labels
+title,body,labels
Test 1, This is the test1 desc, bug
Test 2, This is the test2 desc, "question,bug"
\ No newline at end of file
diff --git a/test/3.csv b/test/3.csv
@@ -1,3 +1,3 @@
-title,description,labels,state
+title,body,labels,state
Test 1, This is the test1 desc, bug,open
Test 2, This is the test2 desc, "question,bug",closed
diff --git a/test/4.csv b/test/4.csv
@@ -1,3 +1,3 @@
-title,description,labels,assignee
+title,body,labels,assignee
Test 1, This is the test1 desc, bug,github-user
Test 2, This is the test2 desc, "question,bug",github-user
diff --git a/test/noTitle.csv b/test/noTitle.csv
@@ -1,3 +1,3 @@
-description,labels
+body,labels
This is the test1 desc, bug
This is the test2 desc, question
\ No newline at end of file
diff --git a/test/uppercaseTitle.csv b/test/uppercaseTitle.csv
@@ -1,3 +1,3 @@
-Title,Description,Labels
+Title,Body,Labels
Test 1, This is the test1 desc, bug
Test 2, This is the test2 desc, question
\ No newline at end of file