github / github/roadmap

Path-based exclusions for push rules in Rulesets [Public Preview]

Open
#1,290 1 comment 0 reactions 0 assignees View on GitHub
Enterprise Free GHES 3.23 Public Preview Shipped Team
Dominant language
No language data
Stars
8.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

### Value Prop
Path-based exclusions in push rulesets let you apply file push rules only where they matter — protecting critical paths while skipping generated code, documentation, or vendored assets that don't need the same governance. You get precise, surgical control over enforcement without loosening protections elsewhere in your repository. Exclusions are validated at setup time, so misconfigurations are caught before they reach your developers.

### Expected Outcome
Teams can enforce strong push rules across their repositories without creating unnecessary friction for paths that follow different conventions. By giving admins the flexibility to exclude specific directories, this feature reduces workarounds, support requests, and the pressure to choose between blanket enforcement and blanket exemption. The result is a more accurate and trustworthy governance layer that reflects how real codebases are structured.

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or implementation entry points are named in the issue. Clarify the implementation area before starting; done means path-based exclusions for push rulesets, with setup-time validation and selective enforcement.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.