Created
May 6, 2019 20:29
-
-
Save tcely/cf471065b1a7dcd1c6de4e4bdfc4aaa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
github_email_to_login() { | |
local url='https://api.github.com/search/users' | |
local filter='.items|.[]|select(.type == "User")|.login' | |
local email="${1}" | |
curl -sSL "${url}?q=in:email+${email}" | jq -r "${filter}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment