-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running in parallel #46
Comments
I worked around the problem by editing
I was also required to make a similar fix to |
That definitely helps, although I still get the issue on some repos, such as diff --git i/src/index.js w/src/index.js
index 88d11fb..6d036e0 100644
--- i/src/index.js
+++ w/src/index.js
@@ -118,7 +118,7 @@ module.exports = function (token, options, cb) {
if (err) return cb(err, 'Error in request for comments.')
issue.comments = body
- issue.comments.forEach(function (comment) {
+ if(issue.comments.forEach instanceof Function) issue.comments.forEach(function (comment) {
comment.created_at = new Date(comment.created_at).toLocaleDateString()
})
issueData.push(issue)
diff --git i/src/writehtml.js w/src/writehtml.js
index 721a1ff..085649c 100644
--- i/src/writehtml.js
+++ w/src/writehtml.js
@@ -63,9 +63,12 @@ function repoDetails (issue) {
function parseBody (issue) {
if (issue.body === null) issue.body = ''
else issue.body = marked(issue.body)
- issue.comments = issue.comments.map(function (issue) {
- issue.body = marked(issue.body)
- return issue
- })
+
+ if(issue.comments.map instanceof Function) {
+ issue.comments = issue.comments.map(function (issue) {
+ issue.body = marked(issue.body)
+ return issue
+ })
+ }
return issue
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Executing the following command ends in an error:
Any idea on how to get around this?
Thanks!
The text was updated successfully, but these errors were encountered: