mirror of
https://github.com/restincode/restincode.git
synced 2026-09-12 01:29:29 +02:00
A new pre-commit configuration file, `.pre-commit-config.yaml`, has been added. This file specifies the repository and version of the pre-commit hooks to be used. It also includes a hook called `no-commit-to-branch` with the argument `--branch main`, which prevents commits to the `main` branch.
6 lines
No EOL
147 B
YAML
6 lines
No EOL
147 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.3.0
|
|
hooks:
|
|
- id: no-commit-to-branch
|
|
args: ['--branch', 'main'] |