Skip to content

Commit

Permalink
Merge pull request #50 from wannacfuture/feat/contributor-incentives-…
Browse files Browse the repository at this point in the history
…total-scoring-duplicate-fix

feat: duplication collaborator
  • Loading branch information
0x4007 authored Nov 19, 2023
2 parents 1d6da4b + 951449c commit f5a5c5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/handlers/comment/handlers/issue/identify-user-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ async function filterUsers(context: Context, issue: Issue, contributorComments:
(user: User) => !allRoleUsers.some((_user) => _user?.id === user.id)
);
const uniqueContributors = Array.from(new Map(contributors.map((user) => [user.id, user])).values());
return { issuer, assignees, collaborators, contributors: uniqueContributors };
return {
issuer,
assignees,
collaborators: collaborators.filter((collaborator) => collaborator.id !== issuer.id),
contributors: uniqueContributors,
};
}

function returnValues(
Expand Down

0 comments on commit f5a5c5c

Please sign in to comment.