Skip to content

Commit 2040db4

Browse files
committed
Reversion: new-ruleset in labeller
1 parent 325b0eb commit 2040db4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

utils/labeller/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ This compares the open PR requests that have ruleset changes to the Alexa top 1M
88
4. `top-100k`
99
5. `top-1m`
1010

11-
The label `new-ruleset` will be applied if the PR includes a completely new ruleset.
12-
1311
This will work for admins of HTTPS Everywhere that generate a [GitHub token](https://github.com/settings/tokens).
1412

1513
## Setup

utils/labeller/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ function github_process_prs(res, pr_cb){
133133
}
134134

135135
var file_fetches = [];
136-
var newRuleset;
137136

138137
// Out of the list of files for this PR, figure out the minimum Alexa ranking for each
139138
_.each(files, function(file){
@@ -155,24 +154,9 @@ function github_process_prs(res, pr_cb){
155154
}
156155
});
157156
});
158-
159-
if (!fs.existsSync('../../' + file.filename)) {
160-
newRuleset = true;
161-
}
162157
}
163158
});
164159

165-
if (newRuleset) {
166-
console.log("Applying label `new-ruleset` to PR: " + pull_request.number);
167-
168-
github.issues.addLabels(_.extend(httpse, {
169-
number: pull_request.number,
170-
body: ['new-ruleset']
171-
}), function(err, res) {
172-
if (err) console.log(err);
173-
});
174-
}
175-
176160
async.parallel(file_fetches, function(err, res){
177161
if(err) pr_cb(err);
178162

0 commit comments

Comments
 (0)