Skip to content

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

Description

@chrisma

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.

Activity

  1. patrickdevivo commented on Feb 16, 2022

    @patrickdevivo
    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

  2. chrisma commented on Feb 16, 2022

    @chrisma
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions