Skip to content

Commit

Permalink
filter out good first issue topics not in repo with ucla-opensource t…
Browse files Browse the repository at this point in the history
…opic
  • Loading branch information
Amyh11325 committed Feb 23, 2024
1 parent f8169ea commit 6074ebb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/gfiProjects.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions util/projectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,18 @@ function mapIssuesToProjects(issues: GitHubIssue[], repoMap: Map<string, GitHubR
while(!itVal.done){
const [repoUrl, repoIssues] = itVal.value;
const correspondingRepo = repoMap.get(repoUrl);

if(!correspondingRepo){
//console.error('Repo Map went wrong!');
// console.error('Repo Map went wrong!');
return gfis;
} else if (correspondingRepo?.topics?.includes('ucla-opensource')) {
const correspondingProject = convertRepoToProject(correspondingRepo);
gfis.push({
issues: repoIssues,
project: correspondingProject,
repoURL: repoUrl,
});
}
const correspondingProject = convertRepoToProject(correspondingRepo);
gfis.push({
issues: repoIssues,
project: correspondingProject,
repoURL: repoUrl,
});
itVal = mapIter.next();
}
return gfis;
Expand Down

0 comments on commit 6074ebb

Please sign in to comment.