How to use multiple exclusions in FileMatchingPatterns? #372
-
I'm trying to exclude the The following excludes FileMatchingPatterns: |
**/*
!**/package-lock.json When I add the exclusion for FileMatchingPatterns: |
**/*
!**/package-lock.json
!**/packages.lock.json I guess I'm missing something. Please advise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @TemekRoman, thanks for using PR Metrics. I've taken a quick, provisional look and I think there might be an issue in the logic. I can definitely look into fixing this over the longer term. But I have a quick workaround for you now, to get you unblocked: Using the following YAML should work: FileMatchingPatterns: |
**/*
!**/{package-lock.json,packages.lock.json} Let me know how you get on with this. |
Beta Was this translation helpful? Give feedback.
Hi @TemekRoman, thanks for using PR Metrics. I've taken a quick, provisional look and I think there might be an issue in the logic. I can definitely look into fixing this over the longer term. But I have a quick workaround for you now, to get you unblocked:
Using the following YAML should work:
Let me know how you get on with this.