File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
.github/actions/https-everywhere-labeller Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ const github = require('@actions/github');
55const axios = require ( 'axios' ) ;
66const unzip = require ( 'unzipper' ) ;
77const context = github . context ;
8- const Minimatch = require ( 'minimatch' ) . Minimatch ;
9- const minimatch = new Minimatch ;
8+ const minimatch = require ( 'minimatch' ) ;
109const rulesetGlob = '/src/chrome/content/rules/*.xml' ;
1110
1211let ProgressBar = require ( 'progress' ) ;
@@ -96,13 +95,13 @@ async function run(alexa) {
9695 const fileList = response . data
9796 console . log ( fileList ) ;
9897
99- if ( ! fileList . every ( file => minimatch . match ( file . filename , rulesetGlob , { matchBase : true } ) ) ) {
98+ if ( ! fileList . every ( file => minimatch . match ( file . filename , rulesetGlob ) ) ) {
10099 // Don't touch PRs that modify anything except rulesets
101100 console . log ( 'No ruleset files in this PR' ) ;
102101 return ;
103102 } else {
104103 fileList . forEach ( file => {
105- if ( minimatch . match ( file . filename , rulesetGlob , { matchBase : true } ) ) {
104+ if ( minimatch . match ( file . filename , rulesetGlob ) ) {
106105 console . log ( 'passed match' ) ;
107106
108107 // Look at PR changes directly
You can’t perform that action at this time.
0 commit comments