Fixes Github api error when using the generator offline

We shouldn't assign scope dynamically just for ease of use. This is pretty confusing.

I think you should move the function call to the prototype, or pass `this.log` as an argument.