| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Using defaultAugmentationProperties to generated expected test output eliminates the need to change individual tests when we add a new field to AugmentationProperties.
There was a problem hiding this comment.
This PR ensures that user-defined query filters are applied before any automatically added exclusions, fixing a bug where user “include” filters were overridden.
Copilot reviewed 9 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file| File | Description |
|---|---|
| src/config-utils.ts | Renamed property and updated augmentation logic. |
| src/config-utils.test.ts | Simplified test fixtures by spreading defaultAugmentationProperties. |
| src/codeql.ts | reordered query-filters array and added explanatory comment. |
| src/codeql.test.ts | Imported and used defaultAugmentationProperties in tests. |
| lib/config-utils.js | Propagated renaming and logic updates to compiled output. |
| lib/codeql.js | Updated filter ordering logic and comments in compiled output. |
| CHANGELOG.md | Added release note for the bug fix. |
src/codeql.ts:1273
...(augmentedConfig["query-filters"] || []),
Sorry, something went wrong.
This commit renames AugmentationProperties.defaultQueryFilters to extraQueryExclusions, and changes its type to ExcludeQueryFilter[]. It matters whether we are adding query inclusions or exclusions, and this renaming makes that distinction clearer.
There was a problem hiding this comment.
Good catch. This makes sense.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR fixes a bug in PR analysis where user-provided include query filter fails to exclude non-included queries.
Merge / deployment checklist