Closed mwq27 closed 8 years ago
You'll want to use promises. To promisify node-github, see here: http://bluebirdjs.com/docs/api/promise.promisifyall.html
Actually, the ability to use promises will be included in the next release. See example.
Included in latest 2.1.0.
Is it possible to chain api calls like so -
I'm trying to move issues from one repo to another. Creating the issues is working, but trying to add the comments to each new issue im running into problems, since the for loops seems to continue while the API call is still working.