Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
users.push(comment.user.login)
_.each(comment.parsed, function(value, key){
if(!row[key]) row[key] = 0
row[key] += value
})
})
row["Total Average"] = row["Total"] / users.length
row["Note"] = ""
row["User(s)"] = users.join(", ")
row["Title"] = issue.title
row["Scope"] = "issue"
row["Issue Url"] = issue.html_url
row["Comment Url"] = ""
rows.push(row)
})
return csv.stringifyAsync(rows, {"header": true})
}).then(function(csvString){
return googleDriveAuth().then(function(oauth2Client){