What happened
GitHub has updated its rulesets feature to allow push rules to include path exceptions.
With this update, you can configure a push rule to apply to all file paths in scope, except for specific paths you choose to exempt.
The feature is now available in public preview.
Why it matters
This gives repository administrators finer-grained control over where push rules apply, enabling them to enforce policies more precisely without blocking legitimate changes to certain files.
By exempting specific paths, teams can avoid unnecessary friction in workflows that involve generated files or directories that should not be subject to the same rules.
Key facts
Push rules in rulesets now support path exceptions.
Path exceptions allow a rule to apply everywhere in scope except for chosen paths.
The feature is in public preview.
What to watch next
Watch for broader availability of this feature as it moves from public preview to general release.
Look for documentation updates and examples on how to effectively use path exceptions in rulesets.