ropensci-org / buffy

Editorial bots generator
https://buffy-ropensci.readthedocs.io/en/latest/
MIT License
1 stars 2 forks source link

How could we improve the finding of email addresses for slack invites? #33

Closed maelle closed 2 years ago

maelle commented 2 years ago

@xuanxu would you mind summing up why it's not possible at the moment? API limitation, correct?

xuanxu commented 2 years ago

Good news! GitHub has made some changes in the API and now it allows to get user's email if they are public and the new access token used for the API calls is valid. I'm going to change the code in buffy to use this feature right now. You can check the bot's personal token has not expired at https://github.com/settings/tokens/ All the new tokens start with ghp_

maelle commented 2 years ago
xuanxu commented 2 years ago

Changes are ready! I have them in a PR instead of merging it directly in the ropensci branch so it can be deployed for testing purposes and rollback easily if the query with the token fails for some unexpected reason.

maelle commented 2 years ago

Tested, it worked beautifully, thank you!