-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added --[no-]reply to exclude @users.noreply.github.com email addresses.
- Loading branch information
Showing
7 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ Fue is short for "Finding Unicorn Engineers". | |
- [Find Someone’s Email](#find-someones-email) | ||
- [Find All Repo Contributors’ Emails](#find-all-repo-contributors-emails) | ||
- [Options](#options) | ||
- [Exclude No-Reply Emails](#exclude-no-reply-emails) | ||
- [Specify More Depth](#specify-more-depth) | ||
- [Get Help](#get-help) | ||
- [Access Tokens](#access-tokens) | ||
- [Debugging](#debugging) | ||
- [Contributing](#contributing) | ||
- [Copyright and License](#copyright-and-license) | ||
|
||
## Usage | ||
|
||
``` | ||
|
@@ -56,6 +56,21 @@ kch: Caio Chassot <[email protected]> | |
|
||
### Options | ||
|
||
#### Exclude No-Reply Emails | ||
|
||
By default `fue find` and `fue contributors` will include no-reply emails such as `[email protected]`. Exclude those with `--no-noreply`. | ||
|
||
``` | ||
fue find --no-noreply kch | ||
``` | ||
|
||
``` | ||
$ fue --verbose contributors --no-noreply defunkt/colored | ||
defunkt: Chris Wanstrath <[email protected]> | ||
kch: | ||
``` | ||
|
||
#### Specify More Depth | ||
|
||
By default the code looks at 1 commit from the last 10 repositories. You can look at more repositories (breadth) and more commits (depth). The maximum value for depth is 100, enforced by Github. Fue will iterate over a number of repositories larger than 100. | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,20 @@ | |
let(:graphql_client) { finder.send(:graphql_client) } | ||
|
||
describe '#find' do | ||
it 'excludes @noreply e-mails', vcr: { cassette_name: 'github/find/defunkt' } do | ||
expect(finder.emails(username: 'defunkt', breadth: 50, exclude_noreply: true)).to eq( | ||
[ | ||
'Chris Wanstrath <[email protected]>', | ||
'defunkt <[email protected]>' | ||
] | ||
) | ||
end | ||
|
||
it 'finds all e-mails', vcr: { cassette_name: 'github/find/defunkt' } do | ||
expect(finder.emails(username: 'defunkt', breadth: 50)).to eq( | ||
expect(finder.emails(username: 'defunkt', breadth: 50, exclude_noreply: false)).to eq( | ||
[ | ||
'Chris Wanstrath <[email protected]>', | ||
'Chris Wanstrath <[email protected]>', | ||
'defunkt <[email protected]>' | ||
] | ||
) | ||
|
@@ -41,8 +51,15 @@ | |
end | ||
|
||
describe '#contributors' do | ||
it 'finds all e-mails', vcr: { cassette_name: 'github/contributors/colored' } do | ||
expect(finder.contributors(repo: 'defunkt/colored')).to eq( | ||
it 'finds e-mails', vcr: { cassette_name: 'github/contributors/colored' } do | ||
expect(finder.contributors(repo: 'defunkt/colored', exclude_noreply: true)).to eq( | ||
'defunkt' => ['Chris Wanstrath <[email protected]>'], | ||
'kch' => [] | ||
) | ||
end | ||
|
||
it 'finds e-mails', vcr: { cassette_name: 'github/contributors/colored' } do | ||
expect(finder.contributors(repo: 'defunkt/colored', exclude_noreply: false)).to eq( | ||
'defunkt' => ['Chris Wanstrath <[email protected]>'], | ||
'kch' => ['Caio Chassot <[email protected]>'] | ||
) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8103,7 +8103,7 @@ http_interactions: | |
encoding: UTF-8 | ||
string: '{"data":{"user":{"repositories":{"nodes":[{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[]}}}},{"defaultBranchRef":null},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
Wanstrath"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"defunkt"}}]}}}},{"defaultBranchRef":{"target":{"__typename":"Commit","history":{"nodes":[{"author":{"email":"[email protected]","name":"Chris | ||
|