/github-email-extractor

Retrieve emails from commits

Primary LanguageShellMIT LicenseMIT

GitHub Email Extractor

GitHub Email Extractor

Extract and compile email addresses from GitHub users, organizations, and Git repositories, all from commit metadata.

Installation

Using wget
  wget https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh
  chmod +x gh-email.sh
  ./gh-email.sh
Using curl
  curl -O https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh
  chmod +x gh-email.sh
  ./gh-email.sh
Using an alias
  alias gh-email="$(curl -fsSL https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh | sh)"

Requirements

  • bash 4+
  • git
  • gh cli authenticated

Notes

  • Why use GitHub CLI instead of requesting GitHub's API directly ?

Currently, GitHub's API only allows for 60 unauthenticated requests per hour, which may not be sufficient for most use cases.