Skip to content

Add no-commit-to-branch to pre-commit-config.yaml #108

@samjmolyneux

Description

@samjmolyneux

If we are only using pull requests, might make sense to enable

  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v6.0.0
      - id: no-commit-to-branch
        args: ["--branch", "main"]

to prevent any "oops, I'm on main" moments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions