Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ For all actions, the tool will ask you to input a GitHub token. To obtain this t
| -t, --token | The GitHub token. <https://github.com/settings/tokens> |
| -o, --organization | The User or Organization slug that the repo lives under. <br />Example: For `/myOrg/my-repo`, this value would be **myOrg**. |
| -r, --repository | The repository name (slug).<br />Example: For `/myOrg/my-repo`, this value would be **my-repo**. |
| --csvDelimiter | The CSV delimiter character (defaults to ',') |
| -v, --verbose | Include additional logging information. |
| -h, --help | See all the options and help. |

Expand Down
1 change: 1 addition & 0 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const importFile = (octokit, file, values) => {
{
trim: true,
bom: true,
delimiter: values.csvDelimiter,
},
(err, csvRows) => {
if (err) throw err;
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ program
)
.option("-c, --exportComments", "Include comments in the export.")
.option("-e, --exportAll", "Include all data in the export.")
.option("-v, --verbose", "Include additional logging information.")
.option(
"--csvDelimiter [csvDelimiter]",
"CSV delimiter character (defaults to ',')"
) .option("-v, --verbose", "Include additional logging information.")
.action(function (file, options) {
co(function* () {
const retObject = {};
Expand All @@ -56,6 +59,7 @@ program
}
retObject.exportComments = options.exportComments || false;
retObject.exportAll = options.exportAll || false;
retObject.csvDelimiter = options.csvDelimiter || ',';
retObject.verbose = options.verbose || false;

retObject.userOrOrganization = options.organization || "";
Expand Down
3 changes: 3 additions & 0 deletions test/semicolonSeparator.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title;body;labels
Test 1; This is the test1 desc; bug
Test 2; This is the test2 desc; question