Fixed congratulations bot (#5532)
- Fixed bot - Added list of team members
This commit is contained in:
@ -6,6 +6,7 @@ import { Background } from '@/app/_components/oss-friends/Background';
|
||||
import { ContentContainer } from '@/app/_components/oss-friends/ContentContainer';
|
||||
import { findAll } from '@/database/database';
|
||||
import { pullRequestModel, userModel } from '@/database/model';
|
||||
import { TWENTY_TEAM_MEMBERS } from '@/shared-utils/listTeamMembers';
|
||||
|
||||
export const metadata = {
|
||||
title: 'Twenty - Contributors',
|
||||
@ -30,17 +31,7 @@ const Contributors = async () => {
|
||||
|
||||
const fitlerContributors = contributors
|
||||
.filter((contributor) => contributor.isEmployee === '0')
|
||||
.filter(
|
||||
(contributor) =>
|
||||
![
|
||||
'dependabot',
|
||||
'cyborch',
|
||||
'emilienchvt',
|
||||
'Samox',
|
||||
'nimraahmed',
|
||||
'gitstart-app',
|
||||
].includes(contributor.id),
|
||||
)
|
||||
.filter((contributor) => !TWENTY_TEAM_MEMBERS.includes(contributor.id))
|
||||
.map((contributor) => {
|
||||
contributor.pullRequestCount = pullRequestByAuthor[contributor.id] || 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user