Closed alexeykazakov closed 7 years ago
@jstrachan @rawlingsj take a look please. It's unclear why the generator can't load even public emails but while we are investigating let's use openshift-io email.
LGTM
@corinnekrych It looks like only GHMyself.getEmail() is called. That will only fetch the email from the public profile if it's public. We do request user:email auth, and to get the private email we should call https://github.com/kohsuke/github-api/blob/master/src/main/java/org/kohsuke/github/GHMyself.java#L69 getEmails2() which calls the /user/emails endpoint.
See https://github.com/openshiftio/openshift.io/issues/777