If you are like me, trying to hire developers, you’ve long mastered the dark art of digging up their e-mail address from social media, LinkedIn and, most importantly, Github for the purposes of reaching out directly. The latter consists of finding an old source repo and running a
git log on it. Most Github users have used a real e-mail address when making their first commits with git. Privacy be damned.
Introducing fue, a little command-line tool to do just that. Get a Github access token here. Fue is short for “Finding Unicorn Engineers”.
The Github V4 GraphQL API lets you make one deep query without having to iterate over repositories or commits.
Finding a User ID
A first query gets us the user ID.
Enumerating Root Repositories
The second query gets us all root repositories with their commit histories for the user ID obtained above.
There’s no API to retrieve a user by ID or to retrieve commits for a login, so this may seem a bit cumbersome.
Fue is open-source, please contribute to it.