Skip to content

Push Rulesets #939

Description

@github-product-roadmap

Repository Rules will now allow you to block commits on select file and path attributes.

  • Restrict file paths: Prevent commits that include changes in specified file paths from being pushed to the commit graph.
  • Restrict file path length: Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph
  • Restrict file extensions: Prevent commits that include files with specified file extensions from being pushed to the commit graph.
  • Restrict file size: Prevent commits that exceed a specified file size limit from being pushed to the commit.

Image

Repository and Organizations admins can control who can contribute to certain locations in a repository ensuring certain paths stay locked down. It also ensure the correct types of file are committed to a repo making it sure you don't accidentally add a binary file or SSH key to a repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnterpriseProduct SKU: GitHub EnterprisePreviewFeature phase: PreviewShippedShippedrepositoriesFeature: Github Repositories

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions