Skip to content

Commit

Permalink
Filter repos in projects page by ucla-opensource tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Amyh11325 committed Feb 6, 2024
1 parent 572ae09 commit f8169ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/projectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function convertRepoToProject(repo: GitHubRepo): Project {

function mapReposToProjects(repos: GitHubRepo[]): Project[] {
if (!repos || repos.length < 1) return [];
const filteredData = repos.filter((repo) => !repo.archived);
const filteredData = repos.filter((repo) => !repo.archived && repo.topics?.includes('ucla-opensource'));
const sortedData = filteredData.sort(
(a, b) =>
new Date(b.updated_at as string).getTime() - new Date(a.updated_at as string).getTime(),
Expand Down

0 comments on commit f8169ea

Please sign in to comment.