#81 Use pygithub get_users API to find user details of issue commenters
Opened 7 years ago by cverna. Modified 7 years ago

Pygithub provides an API to get all github users so we should be able to find the details of the issue commenter.

https://pygithub.readthedocs.io/en/latest/github.html#github.MainClass.Github.get_users


@vivekanand1101 here is an example on getting emails for issue commentators. This is quick and dirty :)

https://paste.fedoraproject.org/487501/47968217/

What happens when he/she doesn't have any repo? (the paste is gone but, i had a casual look the day you uploaded). If he doesn't, then there will still be some emails left. But, this will surely reduce the number of empty rows in the csv.

One option would be to prompt the user and ask to enter an email address for this user. As you said it will reduce the number of empty row.
So I think prompting the user couple times can be a good solution.

Login to comment on this ticket.

Metadata