Replies: 4 comments 3 replies
-
Nice catch, actually I am not sure what's the best too. I think it's reasonable for the git plugin to output as is, and maybe the theme should filter duplicate names before displaying it? Edited: for the git plugin, maybe it should try to drop any email containing no-reply if a contributor with same name already exisits. |
Beta Was this translation helpful? Give feedback.
-
@meteorlxy Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Maybe we can add an option for git plugin to manipulate the contributors list |
Beta Was this translation helpful? Give feedback.
-
@Mister-Hope this what you were thinking? lukemassa@c327018 If so I'll turn this into an "issue" and write up a PR. As for an option to manipulate the contributors list, I'm happy to try that out. I'm just not sure what else people might want to add other than this, and it might be kind of awkward to have people copy and paste this particular filter around. I recognize this represents a change in functionality over the existing situation, but it seems innocuous and unlikely to cause regressions. |
Beta Was this translation helpful? Give feedback.
-
Feature request
What problem does this feature solve?
Right now, if there are two git commits for the same with the same
name
but differentemail
, it will show up as two different "contributors". It is relatively common for the same person to commit with different emails, for example this instance from https://github.com/runatlantis/atlantis.This results in https://www.runatlantis.io/docs/ saying "Contributors: Luke Kysow, Luke Kysow" at the bottom.
What does the proposed API look like?
Not sure, see below.
How should this be implemented in your opinion?
I'm actually not sure. The issue is that these are rendered as
span
s, which are in fact different (see attached), but only in metadata not in any way visible on the page.Here are a few ideas:
filter()
and eliminating entries with the samename
(picking I guess the firstemail
?)Are you willing to work on this yourself?
Yup!
Beta Was this translation helpful? Give feedback.
All reactions