mirage / ocaml-github

GitHub APIv3 OCaml bindings
ISC License
100 stars 61 forks source link

Add the API /user/orgs. #222

Closed Aaylor closed 5 years ago

Aaylor commented 5 years ago

In order to list the current user organizations, and for which the user has granted the OAuth application the acces to the organizations, we must use the API /user/orgs.

It is different from /users/:username/orgs: it returns only public organizations, which the OAuth application (via the token) may not have been granted access.

avsm commented 5 years ago

Thanks very much! CI appears broken due to an issue that's nothing to do with your contribution. I'll fix that up separately and then merge/release your PR :-)

avsm commented 5 years ago

I've pushed a merge to your branch that should now pass CI

avsm commented 5 years ago

Released into opam. Thanks for the contribution!