Skip to content

Commit 50faa3b

Browse files
committed
Fic wrong reference in filename
1 parent 7f11acd commit 50faa3b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • .github/actions/https-everywhere-labeller

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,14 @@ async function run(alexa) {
9595
const fileList = response.data
9696
console.log(fileList);
9797

98-
if (!fileList.every(file => rulesetGlob.match(file.name))) {
98+
if (!fileList.every(file => rulesetGlob.match(file.filename))) {
9999
// Don't touch PRs that modify anything except rulesets
100100
console.log('No ruleset files in this PR');
101101
return;
102102
} else {
103103
fileList.forEach(file => {
104-
if(rulesetGlob.match(file.name) !== null){
104+
if(rulesetGlob.match(file.filename) !== null){
105+
console.log('passed match');
105106

106107
// Look at PR changes directly
107108
let matches = file.patch.match(/((host)="([^"]|"")*")/g);

0 commit comments

Comments
 (0)