octocrab icon indicating copy to clipboard operation
octocrab copied to clipboard

Add Events API

Open fenhl opened this issue 4 years ago • 3 comments

Support for the Events API would be nice.

fenhl avatar Jul 07 '20 04:07 fenhl

I started looking at this here https://github.com/XAMPPRocky/octocrab/compare/master...wayofthepie:events-api?expand=1. I've been using an extension on octocrab for this API for a while now anyway, so said I might as well clean it up and try contribute it back. Lots left to do, but should have a PR soon enough.

wayofthepie avatar Nov 25 '20 07:11 wayofthepie

Thank you for your issue! A PR is more than welcome.

XAMPPRocky avatar Nov 25 '20 07:11 XAMPPRocky

Just adding this to track what's done/left to do in the main models.

  • [x] CommitCommentEvent (seems to be a bug in the model, or a docs issue for this one, see https://github.com/github/docs/issues/3190)
  • [x] CreateEvent
  • [x] DeleteEvent (this is missing a field in the docs https://github.com/github/docs/issues/3192)
  • [x] ForkEvent
  • [x] GollumEvent
  • [x] IssueCommentEvent
  • [x] IssuesEvent
  • [x] MemberEvent (docs have some issues here too https://github.com/github/docs/issues/3378)
  • [ ] PublicEvent
  • [x] PullRequestEvent
  • [x] PullRequestReviewCommentEvent
  • [x] PushEvent
  • [ ] ReleaseEvent
  • [ ] SponsorshipEvent
  • [ ] WatchEvent

Seems to be some undocumented event types also, at least the following:

  • [ ] PullRequestReviewEvent (see https://github.com/github/docs/issues/2709)

wayofthepie avatar Jan 18 '21 09:01 wayofthepie