mkdocs-git-committers-plugin-2 icon indicating copy to clipboard operation
mkdocs-git-committers-plugin-2 copied to clipboard

Enh: Add more details to the authors map

Open ojacques opened this issue 3 years ago • 3 comments

Per earlier feedback - add email to authors details.

Hey @ojacques, thanks for the update! In my case, I combine this plugin with git-authors-plugin, as it also computes the contribution percentage of every author. But that plugin only works with names and emails, and the later is more reliable identifier, so I wonder if it is possible to also include author's emails (or maybe some email-to-id map) into self.authors table?

Originally posted by @adamant-pwn in https://github.com/ojacques/mkdocs-git-committers-plugin-2/issues/8#issuecomment-1233411378

ojacques avatar Aug 31 '22 21:08 ojacques

As we have the GitHub username, we can fetch those details with an additional GraphQL call. I guess the API token and caching will have to come back! I don't want to do this for everyone though, but I see use cases like displaying additional contributor info: full name, email, short bio, badges, organization, pro or not, sponsor or not.

ojacques avatar Aug 31 '22 21:08 ojacques

Hm, so at the moment you get the info from pages like this one, right? How did you find it out? Are there other pages like this?

adamant-pwn avatar Aug 31 '22 21:08 adamant-pwn

How did you find it out? Are there other pages like this?

I opened Chrome's debug console and watched the network traffic on a GitHub page to dig this one out.

I am sure there are other pages like this. I largely prefer to use the API, but in this case I could not find a way to do it.

ojacques avatar Sep 01 '22 05:09 ojacques