Closed niamster closed 2 years ago
Why not remove it then? If it's never present for any notification we should also get rid of it.
Why not remove it then? If it's never present for any notification we should also get rid of it.
The size
field is still present in other responses that return a Repository
. For instance: List repositories starred by the authenticated user.
@pietbrauer as @mvolpato mentioned this field is populated in some other GH replies. I'm fine removing it if it's not useful anywhere though.
Make
Repository.size
optional. When requesting for GH activity (notifications list) thesize
field of the repository dict is not present (see example of the reply in the end of the PR description). It's consistent with GH's API documentation.When calling
Octokit(config).myNotifications
I'm getting following error:Example of GH's reply: