in scripts/team.js [84:101]
async getRepoContributors({user, repo, extraContributors = [], page = 1, per_page = 100, list = [], item}) {
let {data = []} = await axios.get(`https://api.github.com/repos/${user}/${repo}/contributors?page=${page}&per_page=${per_page}&anon=true&t=${new Date().getTime()}`)
data = this.handleData(data);
list.push(...data);
if (data.length === per_page) {
page++;
await sleep()
console.log(`/${user}/${repo}/contributors?page=${page}`)
await this.getRepoContributors({user, repo, extraContributors, page, per_page, list, item})
} else {
if (extraContributors && extraContributors.length) {
extraContributors.forEach(item => this.logins[item.login] = item.login);
}
const repoContributors = [...list, ...extraContributors];
item.contributors = repoContributors;
item.contributorCount = [...new Set(repoContributors.map(item => item.id || item.login))].length;
}
}