-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes ghost users associated with pull requests, issues and comments #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if the following couldn't be affected too:
- https://github.com/47deg/github4s/blob/jp-fix-null-users/github4s/shared/src/main/scala/github4s/free/domain/Repository.scala#L23 : I guess not otherwise there wouldn't be any repo
- https://github.com/47deg/github4s/blob/jp-fix-null-users/github4s/shared/src/main/scala/github4s/free/domain/Repository.scala#L73 : I guess not since we're only supporting creating release atm but in the future we might want to support the GET endpoints
- https://github.com/47deg/github4s/blob/jp-fix-null-users/github4s/shared/src/main/scala/github4s/free/domain/Repository.scala#L137 : I don't think so either since if there is no owner for the repository there are no statuses (I guess)
What do you think?
Codecov Report
@@ Coverage Diff @@
## master #144 +/- ##
=====================================
Coverage 88% 88%
=====================================
Files 36 36
Lines 550 550
Branches 2 1 -1
=====================================
Hits 484 484
Misses 66 66
Continue to review full report at Codecov.
|
👍
|
Anyway, let's make optional releases and statuses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 , merging when green
When one user is removed completely from Github, the API returns null (https://github.com/ghost), a possibility not contemplated until now.
This PR makes the users associated with issues, pull requests and issue comments as an optional field.