paths-filter
paths-filter copied to clipboard
Proposing v3.0.0 with updates and new features
New features:
- Adds ability to pass own list of files, as output by git diff.
- Adds ability to specify base and ref if in PR and so override the API-only behviour.
- Adds ability to add paths-ignore to filter rules. Ignore an array of patterns when filtering per rule.
- Adds ability to provide a file similar to .gitignore to globally ignore patterns.
- Validates input and introduces type-guards with appropriate error messages.
- Passes array of strings to picomatch directly where possible rather than looping through strings.
Additionally:
- Updates all packages.
- Bumps up to node 16.
- Minifies build to reduce package size.
Breaking changes:
- All previous features & configuration is tested to be backwards compatible HOWEVER tighter validation may result in previously invalid but passable inputs resulting in failure.
@dorny Grateful if we could get a pair of eyes on these changes and see if it's fit for purpose.
Hi @henrycpainter @dorny! Any ETA on this release? I'm waiting for the paths-ignore
functionality and it would be great to know when to expect it rolled out! Thanks for the great work!
@henrycpainter I think you should do a release on your fork to avoid indefinite limbo on this pr.
Until then we'll have to do
uses: henrycpainter/paths-filter@c1883b96b02d6e44ec1dbdf235f3bb729d65b247
I should note that I'm not a fan of the exclude syntax in this PR.
I prefer #106 's formatting instead of this as it ends up too verbose and pythonic.
Hey guys, sorry for not responding sooner. I was inactive on the project for some time. I will go through the proposal but it will take me some time and there's no ETA. Meanwhile forking the project and implementing any changes you need is the way to go.
Dear @dorny, I hope this message finds you well. I was wondering if you had time to take a look at this PR? I believe this feature could be very beneficial for large projects, potentially saving significant time in the CI process. Merging it into the upstream project will help a lot.