Skip to content

Commit 301b1ac

Browse files
committed
Adjust npm reference again
1 parent 41c8ea4 commit 301b1ac

File tree

1 file changed

+3
-4
lines changed
  • .github/actions/https-everywhere-labeller

1 file changed

+3
-4
lines changed

.github/actions/https-everywhere-labeller/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const github = require('@actions/github');
55
const axios = require('axios');
66
const unzip = require('unzipper');
77
const context = github.context;
8-
const Minimatch = require('minimatch').Minimatch;
9-
const minimatch = new Minimatch;
8+
const minimatch = require('minimatch');
109
const rulesetGlob = '/src/chrome/content/rules/*.xml';
1110

1211
let 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

0 commit comments

Comments
 (0)