File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -150472,16 +150472,17 @@ const robot = (app) => {
150472
150472
loglevel_1.default.debug('includePatterns:', includePatterns);
150473
150473
changedFiles = changedFiles?.filter((file) => {
150474
150474
const url = new URL(file.contents_url);
150475
+ const pathname = decodeURIComponent(url.pathname);
150475
150476
// if includePatterns is not empty, only include files that match the pattern
150476
150477
if (includePatterns.length) {
150477
- return matchPatterns(includePatterns, url. pathname);
150478
+ return matchPatterns(includePatterns, pathname);
150478
150479
}
150479
150480
if (ignoreList.includes(file.filename)) {
150480
150481
return false;
150481
150482
}
150482
150483
// if ignorePatterns is not empty, ignore files that match the pattern
150483
150484
if (ignorePatterns.length) {
150484
- return !matchPatterns(ignorePatterns, url. pathname);
150485
+ return !matchPatterns(ignorePatterns, pathname);
150485
150486
}
150486
150487
return true;
150487
150488
});
Original file line number Diff line number Diff line change @@ -115,9 +115,10 @@ export const robot = (app: Probot) => {
115
115
changedFiles = changedFiles ?. filter (
116
116
( file ) => {
117
117
const url = new URL ( file . contents_url )
118
+ const pathname = decodeURIComponent ( url . pathname )
118
119
// if includePatterns is not empty, only include files that match the pattern
119
120
if ( includePatterns . length ) {
120
- return matchPatterns ( includePatterns , url . pathname )
121
+ return matchPatterns ( includePatterns , pathname )
121
122
}
122
123
123
124
if ( ignoreList . includes ( file . filename ) ) {
@@ -126,7 +127,7 @@ export const robot = (app: Probot) => {
126
127
127
128
// if ignorePatterns is not empty, ignore files that match the pattern
128
129
if ( ignorePatterns . length ) {
129
- return ! matchPatterns ( ignorePatterns , url . pathname )
130
+ return ! matchPatterns ( ignorePatterns , pathname )
130
131
}
131
132
132
133
return true
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import { run } from "probot";
2
2
import log from "./log.js" ;
3
3
import { robot } from "./bot.js" ;
4
4
5
- log . info ( "Starting probot test " ) ;
5
+ log . info ( "Starting probot" ) ;
6
6
7
7
run ( robot )
You can’t perform that action at this time.
0 commit comments