You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Acceptance: protected_paths in the hooks' syntax, as the Consumer entry's are #740
Why.#738 (#141) gives the Consumer entry's verify.protected_paths the hooks' syntax: each item is a $ref to hooks.schema.json#/$defs/path, and is read by the one matcher (kernel/derive.matches, tools/hooks/protected.py). schemas/acceptance.schema.json's protected_paths still accepts any string, so a pattern the matcher reads differently, or not at all, would pass its schema.
Done when
schemas/acceptance.schema.json's protected_paths items take hooks.schema.json#/$defs/path, with a counter-example such as /CODEOWNERS or ../CODEOWNERS.
Activity