File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ This compares the open PR requests that have ruleset changes to the Alexa top 1M
884 . ` top-100k `
995 . ` top-1m `
1010
11- The label ` new-ruleset ` will be applied if the PR includes a completely new ruleset.
12-
1311This will work for admins of HTTPS Everywhere that generate a [ GitHub token] ( https://github.com/settings/tokens ) .
1412
1513## Setup
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments