Skip to content

Commit 84806b9

Browse files
authored
Contributors list fix (#3297)
* Added per_page parameter, filter out renovate bot * Changed per page parameter to 59 to not exceed rate limit
1 parent 72a7e51 commit 84806b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/contributors/subcomponents/ContributorsGithubApi.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import {
44
ReposInApi
55
} from '../../../features/contributors/ContributorsTypes';
66

7-
const apiRepoDetails: string = 'https://api.github.com/orgs/source-academy/repos';
7+
const apiRepoDetails: string = 'https://api.github.com/orgs/source-academy/repos?per_page=59';
88
const ignoreRepos: string[] = ['assessments', 'tools', 'source-academy2'];
9-
const ignoreContributors: string[] = ['dependabot[bot]', 'dependabot-preview[bot]'];
9+
const ignoreContributors: string[] = [
10+
'dependabot[bot]',
11+
'dependabot-preview[bot]',
12+
'renovate[bot]'
13+
];
1014

1115
export const fetchRepos = async () => {
1216
const response = await fetch(apiRepoDetails);

0 commit comments

Comments
 (0)