mirror of
https://github.com/restincode/restincode.git
synced 2026-09-12 01:29:29 +02:00
chore(pre-commit): add pre-commit configuration file
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.
This commit is contained in:
parent
2e3f4190ad
commit
7ed6d2357d
1 changed files with 6 additions and 0 deletions
6
.pre-commit-config.yaml
Normal file
6
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.3.0
|
||||
hooks:
|
||||
- id: no-commit-to-branch
|
||||
args: ['--branch', 'main']
|
||||
Loading…
Add table
Add a link
Reference in a new issue