Github has an option to keep your email address private. When an user logs in via github oauth, currently all of their edits will have anon@anon.anon email. When viewing the wiki repo history in github this all gets interpreted as one user. This commit sets the email for github users with private email addresses to <username>@users.noreply.github.com, which github recognizes as belonging to the proper user.
Instead of making conditionals in the class, I just added the ability for the field maps to contain lambda functions.
Github has an option to keep your email address private. When an user logs in via github oauth, currently all of their edits will have anon@anon.anon email. When viewing the wiki repo history in github this all gets interpreted as one user. This commit sets the email for github users with private email addresses to
<username>@users.noreply.github.com
, which github recognizes as belonging to the proper user.Instead of making conditionals in the class, I just added the ability for the field maps to contain lambda functions.