mirage / ocaml-github

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

Adding more endpoints around releases and release assets. #243

Closed tmcgilchrist closed 3 years ago

tmcgilchrist commented 3 years ago

New endpoints for:

Updated endpoint for:

I'm still working on adding other release based endpoints that we don't currently support so I'll update this as I go.

Aaylor commented 3 years ago

LGTM, minus comments & the conflict! :)

(Ignore the failure of ocaml-ci, I'll fix this later, this is due to the documentation)

tmcgilchrist commented 3 years ago

Fixed up the conflicts and added a few extra endpoints. Still need to write a nice test for exercising the new release endpoints. Thanks for the review @Aaylor

avsm commented 3 years ago

Now you're working on this repository again, can this PR be rebased @tmcgilchrist? (no rush!)

tmcgilchrist commented 3 years ago

Linting error, which looks like an error itself. The dependency github-data is there just with - vs _

github.opam: changes needed:
  "github_data" {>= 0}                     [from lib]
Note: version numbers are just suggestions based on the currently installed version.
Run with -f to apply changes in non-interactive mode.
"/bin/bash" "-c" "opam exec -- opam-dune-lint" failed with exit status 1
2021-06-23 02:45.32: Job failed: Failed: Build failed
2021-06-23 02:45.32: Log analysis:
2021-06-23 02:45.32: >>> 
github.opam: changes needed: (score = 30)
2021-06-23 02:45.32: Lint failed for github.opam
talex5 commented 3 years ago

The opam file needs to use the opam package name, not the internal dune name. The internal name works for a local dev build when you're building both together, but not when the packages are released.