paulirish / github-email

Get a GitHub user's email. :sunglasses: Use this responsibly.
https://www.npmjs.com/package/github-email
998 stars 111 forks source link

Email format, silent mode, and null suppression #9

Closed ghost closed 4 years ago

ghost commented 5 years ago

A few ideas to consider:

For example:

#!/bin/bash
curl -s https://api.github.com/users/$1/events/public | \
  jq -r '.[] | select(.payload != null) | .payload | select(.commits != null) | .commits[].author | .name + " <" + .email + ">"' | \
  sort | uniq
paulirish commented 5 years ago

sound great! want to make a pull request?

ghost commented 5 years ago

See https://github.com/paulirish/github-email/pull/13, which includes:

ghost commented 5 years ago

PR #13 (https://github.com/paulirish/github-email/pull/13/commits/5adcd7d91c031f86ce067252ad4006ea3a0df607) now resolves this issue. Updates include:

Sample output:

screenshot

Here's a before (right) and after (left) shot:

before-after