Support local (repository level) and organisation-wide mailmap displays from within GitHub #212676
Unanswered
GrayedFox
asked this question in
Repositories
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
Git supports a
.mailmapfile that maps the names and email addresses recorded in commits to one canonical identity, andgit log,git shortlog, andgit blameall honour it. GitHub ignores it, so everywhere GitHub shows a commit it uses the raw identity stored in the commit, or the GitHub username linked to that email, rather than the identity the repository or organisation has chosen.This request asks GitHub to:
.mailmapwhen displaying commit authors and committers.mailmaptaking precedenceIt builds on #22518, which has asked for repository-level support since 2020.
Problem
In a large organisation the same person often appears under several identities:
noreplyaddress, used because they keep Block command line pushes that expose my email enabledCommit lists, blame, and pull request commit tabs end up showing a mix of usernames and addresses that colleagues cannot match to a real person. People who keep their email private are worse off: the only way to show their work identity on their commits is to turn off the push protection and publish their address in every commit.
A
.mailmapalready solves this locally. Keeping one per repository does not scale, though: an organisation with hundreds of repositories has to commit the same file to each of them and keep every copy in sync.Proposal
.mailmapfrom the root of the default branch, using the same format and matching rules as Git..mailmapat the root of the organisation's.githubor.github-privaterepository.Acceptance criteria
.mailmapat the root of a repository's default branch and applies it to every commit displayed in that repository.mailmap: when both map the same name or email, the repository entry wins, and organisation entries only apply to identities the repository file does not mapMona Lisa <mona@example.com> <583231+octocat@users.noreply.github.com>, a commit authored with583231+octocat@users.noreply.github.comthat GitHub currently shows as "octocat authored" shows as "Mona Lisa authored", withmona@example.comwherever an email is shownConsiderations
All reactions