fix(tools) Fixed documentation comments on different .js files (#38642)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
const rateLimiter = (delay = 1500) => {
|
const rateLimiter = (delay = 1500) => {
|
||||||
/* The 1500 delay will guarntee the script will not exceed Github request
|
/* 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 */
|
limit of 1500 per hour. Only increase if you have a higher rate limit */
|
||||||
return new Promise(resolve => setTimeout(() => resolve(true), delay));
|
return new Promise(resolve => setTimeout(() => resolve(true), delay));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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.
|
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
|
It generates a text file referencing only PRs with any comments/labels
|
||||||
which would have beeen added (test) based on data stored in the
|
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
|
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
|
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.
|
if the sweeper commented or labeled any PRs during its run.
|
||||||
|
@ -97,7 +97,7 @@ class Presolver {
|
|||||||
const number = this.pullRequest.number;
|
const number = this.pullRequest.number;
|
||||||
const label = this.config.labelPRConflict;
|
const label = this.config.labelPRConflict;
|
||||||
const github = this.github;
|
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(() => {
|
return this._getLabel(label).catch(() => {
|
||||||
// console.log(labelObj)
|
// console.log(labelObj)
|
||||||
return github.issues.addLabels({
|
return github.issues.addLabels({
|
||||||
|
Reference in New Issue
Block a user