commit cad69e3de7f4f69a127d237ac7e1f134f9bc13f8
parent e34108e1dc024e420964632c171e120540f0cf0e
Author: Olivier Jacques <ojacques2@gmail.com>
Date: Wed, 19 Jul 2017 14:22:56 +0200
Add support of assignee
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/index.js b/index.js
@@ -70,6 +70,7 @@ program
var bodyIndex = cols.indexOf('description');
var labelsIndex = cols.indexOf('labels');
var milestoneIndex = cols.indexOf('milestone');
+ var assigneeIndex = cols.indexOf('assignee');
if (titleIndex === -1) {
console.error('Title required by GitHub, but not found in CSV.');
@@ -96,6 +97,11 @@ program
if (milestoneIndex > -1 && row[milestoneIndex] !== '') {
sendObj.milestone = row[milestoneIndex];
}
+
+ // if we have an assignee column, pass that.
+ if (assigneeIndex > -1 && row[assigneeIndex] !== '') {
+ sendObj.assignee = row[assigneeIndex];
+ }
limiter.submit(github.issues.create,sendObj, function(err, res)
{