We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d80137 commit 3ff1b06Copy full SHA for 3ff1b06
ecosystem/plugin-git/src/node/utils/getContributors.ts
@@ -23,4 +23,19 @@ export const getContributors = async (
23
email,
24
commits: Number.parseInt(commits, 10),
25
}))
26
+ .filter((item, index, self) => {
27
+ // If one of the contributors is a "noreply" email address, and there's
28
+ // already a contributor with the same name, it is very likely a duplicate,
29
+ // so it can be removed.
30
+ if (item.email.split('@')[1]?.match(/no-?reply/)) {
31
+ const realIndex = self.findIndex((t) => t.name === item.name)
32
+ if (realIndex !== index) {
33
+ // Update the "real" contributor to also include the noreply's commits
34
+ self[realIndex].commits += item.commits
35
+ return false
36
+ }
37
+ return true
38
39
40
+ })
41
}
0 commit comments