Skip to content

Commit

Permalink
feat: teams blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Nov 19, 2024
1 parent 43187c4 commit c5a58be
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/actions/get-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,26 @@ export async function getTeamBySlug(slug: string) {
return teams.find((team) => team.slug === slug);
}

const blacklist = [
"appel-a-idees-fabrique-numerique",
"data-ia",
"devops-psn",
"dora",
"evolution-plateforme",
"fabrique",
"fce",
"plateforme",
"startup-bootstrap",
];

const getTeams = cache(async () => {
const {
organization: {
teams: { nodes: teams },
},
} = (await fetcher({ query: getTeamsQuery })) as Teams;

return teams;
return teams.filter((team) => !blacklist.includes(team.slug));
});

export default getTeams;

0 comments on commit c5a58be

Please sign in to comment.