mirage / ocaml-github

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

Add support for listing an organisation's repositories. #239

Closed tmcgilchrist closed 3 years ago

tmcgilchrist commented 3 years ago

Added support for listing an organisation's repositories https://docs.github.com/en/rest/reference/repos#list-organization-repositories

I also added organizations.exe and organization_repos.exe to the lib_test dune so they can be built. I don't see where in CI these executables get run but I have run them locally successfully.

tmcgilchrist commented 3 years ago

Not sure what I can practically do about the Arm32, ppc64 and x86_32 builds. Are there any suggestions on how to fix them?

talex5 commented 3 years ago

It's due to the 4.11.1 release (see https://github.com/ocurrent/ocaml-ci/issues/242). I'll get it updated...

Aaylor commented 3 years ago

Looks good to me, thanks !

I don't see where in CI these executables get run but I have run them locally successfully.

For the moment, these binaries are not run automatically by the CI: it requires to store a private token, and choose a GitHub entity on which the CI will behave (and thus use rate limits) to send the API requests. Improvements may be made in the future (with mock server, ...), but this is not a priority for the moment :)