fix: do not count in the number of robots (#303)
diff --git a/scripts/team.js b/scripts/team.js
index 18e425d..0b008b8 100644
--- a/scripts/team.js
+++ b/scripts/team.js
@@ -72,7 +72,8 @@
}
async getRepoContributors({user, repo, page = 1, per_page = 100, list = [], item}) {
- const {data} = await axios.get(`https://api.github.com/repos/${user}/${repo}/contributors?page=${page}&per_page=${per_page}&anon=true`)
+ let {data} = await axios.get(`https://api.github.com/repos/${user}/${repo}/contributors?page=${page}&per_page=${per_page}&anon=true`)
+ data = data.filter(item => item.type !== 'Bot')
list.push(...data)
this.getUniqueId(data)
if (data.length === per_page) {