This also needs to clone this.options, but you could probably just do this once at the top of the method rather than repeating the assignment of the request to your temporary event options.
This also needs to clone `this.options`, but you could probably just do this once at the top of the method rather than repeating the assignment of the request to your temporary event options.
I don't have much time to do that at present, unfortunately, so you can either have a go yourself or, as handle-response is largely a direct transplant from index.js and as most of the remainder of that file is untested as well, we could park adding tests for this until #21 if you want to get this merged soon.
I don't have much time to do that at present, unfortunately, so you can either have a go yourself or, as `handle-response` is largely a direct transplant from `index.js` and as most of the remainder of that file is untested as well, we could park adding tests for this until #21 if you want to get this merged soon.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #123.
This needs to be
tempOptions = clone(this.options), or you'll mutate the current instance's optionsThis also needs to clone
this.options, but you could probably just do this once at the top of the method rather than repeating the assignment of the request to your temporary event options.Good point.
Good point.
It's all looking good to me now, do you want to add some tests for
handle-response?Yes, please. You're better at that than I am.
I don't have much time to do that at present, unfortunately, so you can either have a go yourself or, as
handle-responseis largely a direct transplant fromindex.jsand as most of the remainder of that file is untested as well, we could park adding tests for this until #21 if you want to get this merged soon.Thanks for adding tests, I'll try and find some time to review them shortly.
Took a look at the tests this morning, all seems good to merge to me!