Skip to content

Commit 9587a31

Browse files
committed
Append owners logins only
1 parent 92051ac commit 9587a31

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

lib/git-contributor.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,12 @@ exports.getAuthor = async (options = {}) => {
149149
if (ownersPath) {
150150
const owners = parseOwnersFile(ownersPath);
151151
if (owners.length) {
152-
const existingLogins = new Set(authorList.map(item => item && item.login).filter(Boolean));
153152
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-
}
153+
authorList.push({
154+
login,
155+
avatar_url: `https://avatars.githubusercontent.com/${login}?v=4`,
156+
html_url: `https://github.com/${login}`
157+
});
162158
});
163159
}
164160
}

0 commit comments

Comments
 (0)