Skip to content

Extend GitHub token scope for campaigns by user:email

Created by: eseliger

In order to match PR authors to Sourcegraph users, we want to query the email address of the actor. That, however requires us to extend the token scope by user:email. Also, we need some fallback handling, so in case the token has no permission to access that field, we don't ask for it and return just the author name.