This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new f2f7103 fix: do not count in the number of robots (#303)
f2f7103 is described below
commit f2f7103016a789143e8eafaca96774c2ee896357
Author: Juntao Zhang <[email protected]>
AuthorDate: Fri Jul 9 00:14:55 2021 -0500
fix: do not count in the number of robots (#303)
---
scripts/team.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 @@ class GenerateTeamYaml {
}
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) {