File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150537,7 +150537,7 @@ exports.robot = robot;
150537
150537
const matchPatterns = (patterns, path) => {
150538
150538
return patterns.some((pattern) => {
150539
150539
try {
150540
- return (0, minimatch_1.minimatch)(path, pattern);
150540
+ return (0, minimatch_1.minimatch)(path, pattern.startsWith('/') || pattern.startsWith('**') ? pattern : `**/${pattern}` );
150541
150541
}
150542
150542
catch {
150543
150543
// if the pattern is not a valid glob pattern, try to match it as a regular expression
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export const robot = (app: Probot) => {
195
195
const matchPatterns = ( patterns : string [ ] , path : string ) => {
196
196
return patterns . some ( ( pattern ) => {
197
197
try {
198
- return minimatch ( path , pattern )
198
+ return minimatch ( path , pattern . startsWith ( '/' ) || pattern . startsWith ( '**' ) ? pattern : `**/ ${ pattern } ` ) ;
199
199
} catch {
200
200
// if the pattern is not a valid glob pattern, try to match it as a regular expression
201
201
try {
You can’t perform that action at this time.
0 commit comments