Skip to content

Glob column filters match prefixed words exactly: -dependabot in the Branch filter doesn't hide dependabot/nuget/... branches, though a plain dependabot matches them anywhere #375

Open

Description

@matt-edmondson

What's wrong

BuildMonitor/ColumnFilter.cs (MakeGlobMatchAnywhere) wraps each Glob word in *…* so that the word matches anywhere in the cell. A word that starts with a TextFilter prefix (-, !, ^, +) is passed through without the wrapping:

.Select(token => GlobPrefixes.Contains(token[0]) ? token : $"*{token}*");

ktsu.TextFilter strips the prefix and matches the rest of the word as a glob against each whole text token. In whole-string mode that token is the entire cell, and branch names have no spaces. So an excluded or required word only matches a branch with exactly that name, while a plain word matches anywhere:

Branch filter dependabot/nuget/Polyfill-11.4.5
dependabot shown (matches anywhere)
-dependabot still shown: only a branch named exactly dependabot is excluded
+release hides release/2.0: only a branch named exactly release passes

The other columns behave the same way. For example, -Release in Build Name doesn't hide "Build and Release" when whole-string matching is on.

OnlyUnprefixedGlobWordsAreWrapped (BuildMonitor.Test/ColumnFilterTests.cs) pins the current behaviour. The only exclusion test (AGlobExclusionHidesTheBranchAndShowsTheRest) uses a whole branch name (-main), so it passes either way.

#319 made sure the prefix is kept. What remains is that the word after the prefix still isn't made match-anywhere.

Why it matters

Hiding Dependabot or feature branches is the main reason to use an exclusion filter. Right now -dependabot hides nothing and +release hides every release/* branch, and the table gives no hint why.

Suggested fix / acceptance criteria

  • For a prefixed word, keep the prefix and wrap what follows it: -dependabot becomes -*dependabot*, and +release becomes +*release*.
  • Leave a bare prefix (-, +) unchanged, so it still means nothing while the user is typing.
  • Update OnlyUnprefixedGlobWordsAreWrapped to match.
  • Add tests:
    • -dependabot hides dependabot/nuget/x and shows main
    • +release shows release/2.0
    • -main still hides main
  • Regex and Fuzzy filters are unchanged.

Activity

  1. added
    bug
    on Oct 19, 2026
  2. matt-edmondson commented on Oct 19, 2026

    @matt-edmondson
    ContributorAuthor

    Triage


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions