Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Keep user-provided query filters first#2938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
cklin merged 4 commits intomainfromcklin/default-query-filters
Jun 19, 2025
Merged

Conversation

cklin
Copy link
Contributor

This PR fixes a bug in PR analysis where user-providedinclude query filter fails to exclude non-included queries.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm thereadme has been updated if necessary.
  • Confirm thechangelog has been updated if necessary.

Using defaultAugmentationProperties to generated expected test outputeliminates the need to change individual tests when we add a new fieldto AugmentationProperties.
@cklincklin marked this pull request as ready for reviewJune 19, 2025 19:04
@CopilotCopilotAI review requested due to automatic review settingsJune 19, 2025 19:04
@cklincklin requested a review froma team as acode ownerJune 19, 2025 19:04
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR ensures that user-defined query filters are applied before any automatically added exclusions, fixing a bug where user “include” filters were overridden.

  • RenameddefaultQueryFilters toextraQueryExclusions across the config API.
  • UpdatedcalculateAugmentation andgenerateCodeScanningConfig to use the new property and preserve user filter ordering.
  • Adjusted tests, generated JS files, and the changelog to match the renaming and logic changes.

Reviewed Changes

Copilot reviewed 9 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
src/config-utils.tsRenamed property and updated augmentation logic.
src/config-utils.test.tsSimplified test fixtures by spreadingdefaultAugmentationProperties.
src/codeql.tsreorderedquery-filters array and added explanatory comment.
src/codeql.test.tsImported and useddefaultAugmentationProperties in tests.
lib/config-utils.jsPropagated renaming and logic updates to compiled output.
lib/codeql.jsUpdated filter ordering logic and comments in compiled output.
CHANGELOG.mdAdded release note for the bug fix.
Comments suppressed due to low confidence (1)

src/codeql.ts:1273

  • Add a unit test that verifies user-provided query filters appear before extra query exclusions in the generated CodeQL configuration.
    ...(augmentedConfig["query-filters"] || []),

This commit renames AugmentationProperties.defaultQueryFilters toextraQueryExclusions, and changes its type to ExcludeQueryFilter[]. Itmatters whether we are adding query inclusions or exclusions, and thisrenaming makes that distinction clearer.
@cklincklinforce-pushed thecklin/default-query-filters branch from1b923a3 to65abb79CompareJune 19, 2025 19:20
Copy link
Contributor

@aeisenbergaeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good catch. This makes sense.

@cklincklin merged commit66d7255 intomainJun 19, 2025
279 checks passed
@cklincklin deleted the cklin/default-query-filters branchJune 19, 2025 20:46
@github-actionsgithub-actionsbot mentioned this pull requestJun 27, 2025
8 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@aeisenbergaeisenbergaeisenberg approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@cklin@aeisenberg

[8]ページ先頭

©2009-2025 Movatter.jp