1 parent 92051ac commit 9587a31Copy full SHA for 9587a31
1 file changed
lib/git-contributor.js
@@ -149,16 +149,12 @@ exports.getAuthor = async (options = {}) => {
149
if (ownersPath) {
150
const owners = parseOwnersFile(ownersPath);
151
if (owners.length) {
152
- const existingLogins = new Set(authorList.map(item => item && item.login).filter(Boolean));
153
owners.forEach(login => {
154
- if (!existingLogins.has(login)) {
155
- authorList.push({
156
- login,
157
- avatar_url: `https://avatars.githubusercontent.com/${login}?v=4`,
158
- html_url: `https://github.com/${login}`
159
- });
160
- existingLogins.add(login);
161
- }
+ authorList.push({
+ login,
+ avatar_url: `https://avatars.githubusercontent.com/${login}?v=4`,
+ html_url: `https://github.com/${login}`
+ });
162
});
163
}
164
0 commit comments