moul / node-gitlab

DEPRECATED, see https://github.com/node-gitlab/node-gitlab
https://npmjs.org/package/gitlab
Other
470 stars 140 forks source link

Run api calls via other user (sudo) #105

Closed illmat closed 5 years ago

illmat commented 9 years ago

Needs to be implemented as far as I can see. https://github.com/gitlabhq/gitlabhq/tree/master/doc/api#sudo

Maybe I can come up with a PR if I find the time to dive into coffeescript

Sewdn commented 9 years ago

It seems to me you can just add the sudo option to the options for each of the available wrapped methods. Works for me...