From 8d1a1ce3b1543fc57cae056e5b1fbe7ae6554356 Mon Sep 17 00:00:00 2001 From: MarceloDamian <60354250+MarceloDamian@users.noreply.github.com> Date: Sun, 26 Apr 2020 07:54:24 -0400 Subject: [PATCH] fix(tools) Fixed documentation comments on different .js files (#38642) --- tools/dashboard/lib/utils/rate-limiter.js | 4 ++-- .../dashboard/one-off-scripts/comments-and-labels-summary.js | 2 +- tools/dashboard/probot/server/presolver.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dashboard/lib/utils/rate-limiter.js b/tools/dashboard/lib/utils/rate-limiter.js index b3664e58b3..ea3fecb847 100644 --- a/tools/dashboard/lib/utils/rate-limiter.js +++ b/tools/dashboard/lib/utils/rate-limiter.js @@ -1,6 +1,6 @@ const rateLimiter = (delay = 1500) => { - /* The 1500 delay will guarntee the script will not exceed Github request - limit of 1500 per hour. Only increase if you have a higher rate limit */ + /* The 1500 delay will guarantee the script will not exceed Github request + limit of 1500 per hour. Only increase if you have a higher rate limit */ return new Promise(resolve => setTimeout(() => resolve(true), delay)); }; diff --git a/tools/dashboard/one-off-scripts/comments-and-labels-summary.js b/tools/dashboard/one-off-scripts/comments-and-labels-summary.js index 27842e1329..f1d8445d8e 100644 --- a/tools/dashboard/one-off-scripts/comments-and-labels-summary.js +++ b/tools/dashboard/one-off-scripts/comments-and-labels-summary.js @@ -3,7 +3,7 @@ This is a one-off script that was was used to summarize the results of a test_sweeper json log file after sweeper.js was run on a particular set of data. It generates a text file referencing only PRs with any comments/labels which would have beeen added (test) based on data stored in the -specific JSON log file. You must run sweeper with environement variable +specific JSON log file. You must run sweeper with environment variable PRODUCTION_RUN set to false, to get the test version. Technically, you could also run this on a production_sweeper json log file, if you wanted to see if the sweeper commented or labeled any PRs during its run. diff --git a/tools/dashboard/probot/server/presolver.js b/tools/dashboard/probot/server/presolver.js index fa5dc86dcd..980b26142e 100644 --- a/tools/dashboard/probot/server/presolver.js +++ b/tools/dashboard/probot/server/presolver.js @@ -97,7 +97,7 @@ class Presolver { const number = this.pullRequest.number; const label = this.config.labelPRConflict; const github = this.github; - // Check if a label does not exist. If it does, it addes the label. + // Check if a label does not exist. If it does, it adds label. return this._getLabel(label).catch(() => { // console.log(labelObj) return github.issues.addLabels({