mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 04:26:52 +00:00
Update default branch to main
Committed via https://github.com/asottile/all-repos
This commit is contained in:
parent
c1c8b0a543
commit
202ec6b8f5
2 changed files with 6 additions and 6 deletions
10
README.md
10
README.md
|
|
@ -1,6 +1,6 @@
|
||||||
[](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=17&branchName=master)
|
[](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=17&branchName=main)
|
||||||
[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=17&branchName=master)
|
[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=17&branchName=main)
|
||||||
[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/master)
|
[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/main)
|
||||||
|
|
||||||
pre-commit-hooks
|
pre-commit-hooks
|
||||||
================
|
================
|
||||||
|
|
@ -146,8 +146,8 @@ Assert that files in tests/ end in `_test.py`.
|
||||||
|
|
||||||
#### `no-commit-to-branch`
|
#### `no-commit-to-branch`
|
||||||
Protect specific branches from direct checkins.
|
Protect specific branches from direct checkins.
|
||||||
- Use `args: [--branch, staging, --branch, master]` to set the branch.
|
- Use `args: [--branch, staging, --branch, main]` to set the branch.
|
||||||
Both `master` and `main` are protected by default if no branch argument is set.
|
Both `main` and `master` are protected by default if no branch argument is set.
|
||||||
- `-b` / `--branch` may be specified multiple times to protect multiple
|
- `-b` / `--branch` may be specified multiple times to protect multiple
|
||||||
branches.
|
branches.
|
||||||
- `-p` / `--pattern` can be used to protect branches that match a supplied regex
|
- `-p` / `--pattern` can be used to protect branches that match a supplied regex
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include: [master, test-me-*]
|
include: [main, test-me-*]
|
||||||
tags:
|
tags:
|
||||||
include: ['*']
|
include: ['*']
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue