Skip to content

no-commit-to-branch main pre-commit hook? #120

@sbillinge

Description

@sbillinge

I would love to have this included in the pre-commit hooks, or included as an option.

pre-commit would become in the yaml

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
    - id: no-commit-to-branch
      args: ['--branch', 'main']
    - id: check-yaml
    - id: end-of-file-fixer
    - id: trailing-whitespace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions