@load_balancer_cluster_approvers, then what type of files it will include? In our case it is sometimes including src/lin/libsmlbabc also and these kind of unrelated files.
Hi Karan,
In a CODEOWNERS file, the patterns are interpreted as path globs. The entry src/lib/libsmlb/** will match everything under the src/lib/libsmlb/ directory (including all nested folders and files). It should not normally match something like src/lin/libsmlbabc, since that path does not start with src/lib/libsmlb/.
CODEOWNERS
src/lib/libsmlb/**
src/lib/libsmlb/
src/lin/libsmlbabc
If you’re seeing unrelated paths included, a couple of things to check:
Make sure there isn’t another overlapping pattern higher up in your CODEOWNERS file that is assigning approvers to those files.
Confirm whether your platform is using the default GitHub-style matching rules or if it has any product-specific extensions (for example, GitLab or Bitbucket Server may handle wildcards slightly differently).
Try testing the pattern locally with git check-ignore -n <path> to see which rule is being applied.
git check-ignore -n <path>
In short: the pattern you shared should only include files directly under src/lib/libsmlb/. If other paths are being included, it’s likely due to another matching rule elsewhere in your CODEOWNERS file.
Hi Karan and welcome to the community!
I would like to ask a few questions so I can better help you:
Kind regards,Theodora
It looks like you're new here. Sign in or register to get started.