Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sbillinge opened this issue Feb 28, 2023 · 0 comments
Open

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

sbillinge opened this issue Feb 28, 2023 · 0 comments

Comments

@sbillinge
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant