You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/04/05 14:54:48 UTC
[skywalking-website] branch master updated: fix: fetch contributors graph data (#417)
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 edcc910ffa fix: fetch contributors graph data (#417)
edcc910ffa is described below
commit edcc910ffab323abf2511dcaf231bf90a3a35468
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Tue Apr 5 22:54:43 2022 +0800
fix: fetch contributors graph data (#417)
---
scripts/team.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/scripts/team.js b/scripts/team.js
index 3b4b7a32d7..943e4dfc33 100644
--- a/scripts/team.js
+++ b/scripts/team.js
@@ -9,6 +9,10 @@ const docsFile = path.join(__dirname, '../data/docs.yml')
const teamFile = path.join(__dirname, '../data/team.yml')
const mergedDataFile = path.join(__dirname, '../themes/docsy/static/js/mergedData.js')
+const sleep = (ms) => {
+ return new Promise(resolve => setTimeout(() => resolve(), ms));
+}
+
class GenerateTeamYaml {
constructor(docsFile, teamFile) {
this.docsFile = docsFile;
@@ -42,6 +46,7 @@ class GenerateTeamYaml {
promiseList.push(this.getRepoContributors({user, repo, extraContributors, list, item}));
mergedPromiseList.push(this.getMergedData({user, repo}));
}
+ await sleep(1500)
}
}
await Promise.all(promiseList)
@@ -59,8 +64,9 @@ class GenerateTeamYaml {
const source = res && res.data || [];
source.repo = repo;
this.mergedData.push(source);
+ console.log(`${user}/${repo}/graphs success!`);
} catch (e) {
- console.log(e);
+ console.log(`${user}/${repo}/graphs failed!`);
process.exit(1)
}
}