Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent .mailmap file of repo as a queryable table #254

Open
chrisma opened this issue Feb 16, 2022 · 2 comments
Open

Represent .mailmap file of repo as a queryable table #254

chrisma opened this issue Feb 16, 2022 · 2 comments

Comments

@chrisma
Copy link

chrisma commented Feb 16, 2022

What do you think of the idea of the parsed .mailmap file from the repos (if there is one) being represented by a queryable table in MergeStat?

This would allow constructing a query to identify all email addresses of contributors that have not been assigned a canonical name through the .mailmap file.

@patrickdevivo
Copy link
Contributor

I think that could make sense - so something like SELECT * FROM mailmap('mailmap-file-contents') which would return rows of "proper" name/emails and their corresponding values to match on

@chrisma
Copy link
Author

chrisma commented Feb 16, 2022

Yes, SELECT * FROM mailmap('path/to/repo') might be even easier to use, if we assume the convention that a .mailmap file (if there is one) is included in the repo root.

canonical_name email
ProperNameA A@example.com
ProperNameA also-A@example.com
ProperNameA another-A-alias@example.com
ProperNameB B@example.com
ProperNameB B@users.noreply.github.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants