Find e-mail addresses of a Github users from their commit logs.
Fue is short for "Finding Unicorn Engineers".
Try fue-rs, a faster Rust port of fue with prebuilt binaries for macOS, Linux, and Windows, installed with brew install dblock/tap/fue. It searches profiles, recent activity, commit history, and Signed-off-by lines in a single fue <user|owner/repo> command.
Fue runs on macOS, Linux, and Windows with Ruby 3.0 or newer.
gem install fueThe find command looks through user's initial repository commits. When none of the user's own repositories have their commits, it also looks through their forks.
$ fue --verbose find defunkt
Chris Wanstrath <chris@ozmm.org>
Chris Wanstrath <chris@github.com>The contributors command looks through a git log of contributors, then fetches their e-mails.
$ fue --verbose contributors defunkt/colored
defunkt: Chris Wanstrath <chris@ozmm.org>
kch: Caio Chassot <kch@users.noreply.github.com>The mentions command lists the GitHub @login of each repo contributor without an e-mail address other than a @users.noreply.github.com one, so you can @mention them instead. Use --all to list all contributors. Bots are skipped.
$ fue mentions dblock/iex-ruby-client
@esarmstrong
@tylerhaugen-stanley-amountBy default fue find and fue contributors will include no-reply emails such as kch@users.noreply.github.com and noreply@github.com, which GitHub uses for some commits made on github.com. Exclude those with --no-noreply.
fue find --no-noreply kchfue --verbose contributors --no-noreply defunkt/coloredBy default fue find and fue contributors will include emails gathered from Signed-off-by text in commit descriptions. Only sign-offs by the commit author count: those whose name or e-mail address matches the author's name or e-mail address, or the user's GitHub login, ignoring case. Exclude all of them with --no-signed-off-by.
fue find --no-signed-off-by defunktfue --verbose contributors --no-signed-off-by defunkt/coloredBy default fue find and fue contributors display names with e-mail addresses, such as Chris Wanstrath <chris@ozmm.org>. Display only e-mail addresses with --no-names.
fue find --no-names defunktBy default fue find looks at 10 commits in each of the last 100 repositories, which takes 5 requests to GitHub. fue contributors and fue mentions search each contributor's last 10 repositories, 1 commit each, in 1 request per contributor. You can look at more repositories (breadth) and more commits (depth). Fue pages through larger values of breadth and depth and keeps each request to GitHub small, so any value works and larger values just take longer. For example, --breadth=1000 --depth=100 searches all of a user's public repositories; for a user with several hundred repositories this takes a couple of minutes and uses a few hundred of the 5,000 points GitHub allows per hour. fue contributors and fue mentions run such a search for each contributor.
$ fue find --breadth=100 --depth=5 defunkt
Chris Wanstrath <chris@ozmm.org>
Chris Wanstrath <chris@github.com>
defunkt <chris@ozmm.org>fue helpDisplays additional options.
Fue needs a GitHub token and looks for one in this order.
- The
--token(-t) option or theGITHUB_ACCESS_TOKENenvironment variable. - The GitHub CLI, with
gh auth token. Rungh auth loginonce and fue uses it on macOS, Linux, and Windows without storing a token itself. - A token saved in the macOS keychain by fue 0.5.0 and older.
Run with --verbose to see which token fue uses. Fue only reads public data, so any token with access to public repositories works, including one created with public_repo scope in GitHub personal access token settings.
If you run into an unexpected error, try getting a stack trace with GLI_DEBUG=true.
GLI_DEBUG=true fue find dblockThere are a few feature requests and known issues. Please contribute! See CONTRIBUTING, CHANGELOG, and RELEASING.
Copyright (c) 2018-2022, Daniel Doubrovkine, Artsy, with help from Orta.
This project is licensed under the MIT License.