Filter rules based on modified files
"files"
"package.json"
"src/**/*.js"
"/^src\/.*\.jsx?$/"
(enclosed in forward slashes)Get Changed Files
Process Added Files
added
conditions are specified, it checks if added files match the required patternsProcess Modified Files
modified
conditions are specified, it checks if modified files match the required patternsDetermine Match
Pattern | Matches |
---|---|
src/.* | All files in the src directory and subdirectories |
.*\\.js$ | All JavaScript files |
.*\\.(js|ts)$ | All JavaScript and TypeScript files |
src/components/.* | All files in src/components and subdirectories |
package\\.json | Only the root package.json file |
/^docs\/api\/.*\.md$/ | Markdown files in the docs/api directory |