Skip to content

fix wrong pattern hover tooltips - #41

Draft
chdsbd wants to merge 1 commit into
masterfrom
cdignam/fix-hover-tooltips
Draft

chdsbd wants to merge 1 commit into
masterfrom
cdignam/fix-hover-tooltips

Conversation

@chdsbd

@chdsbd chdsbd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

🤖 Tooltips now describe what a pattern matches on GitHub, following the gh-codeowners specification, and say when GitHub skips a line or it never matches. They're derived from the pattern text alone rather than checking the file system, because what a pattern matches doesn't depend on which paths exist in the checkout.

A pattern ending in /\, like x/\, is still described as a directory match, because the specification doesn't define it.

Before and after for docs/*:

Before: docs/* says it matches all files with the same name

After: docs/* says it matches files directly in the directory, from the repository root

Before and after for /app/[id]/, which GitHub skips:

Before: /app/[id]/ says it matches the path exactly

After: /app/[id]/ says it is invalid and GitHub skips the line

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant