We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36f636b + 75bcd2c commit b5c7e53Copy full SHA for b5c7e53
1 file changed
scripts/get_contributors.js
@@ -92,7 +92,12 @@ module.exports = async function (filepath) {
92
return Object.values(
93
[...authors, ...reviewers].reduce((accumulator, user) => {
94
// Dedupe users
95
- accumulator[user.name] = user
+ // Some user objects do not have a URL (can't figure out why).
96
+ // In that case, copy over a good URL instead.
97
+ const newUser = accumulator[user.name] || user
98
+ newUser.url = newUser.url || user.url
99
+ accumulator[user.name] = newUser
100
+
101
return accumulator
102
}, {})
103
)
0 commit comments