Skip to content

Commit 202ec6b

Browse files
committed
Update default branch to main
Committed via https://github.com/asottile/all-repos
1 parent c1c8b0a commit 202ec6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Build Status](https://asottile.visualstudio.com/asottile/_apis/build/status/pre-commit.pre-commit-hooks?branchName=master)](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=17&branchName=master)
2-
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/17/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=17&branchName=master)
3-
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/pre-commit-hooks/master.svg)](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/master)
1+
[![Build Status](https://asottile.visualstudio.com/asottile/_apis/build/status/pre-commit.pre-commit-hooks?branchName=main)](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=17&branchName=main)
2+
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/17/main.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=17&branchName=main)
3+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/pre-commit-hooks/main.svg)](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/main)
44

55
pre-commit-hooks
66
================
@@ -146,8 +146,8 @@ Assert that files in tests/ end in `_test.py`.
146146

147147
#### `no-commit-to-branch`
148148
Protect specific branches from direct checkins.
149-
- Use `args: [--branch, staging, --branch, master]` to set the branch.
150-
Both `master` and `main` are protected by default if no branch argument is set.
149+
- Use `args: [--branch, staging, --branch, main]` to set the branch.
150+
Both `main` and `master` are protected by default if no branch argument is set.
151151
- `-b` / `--branch` may be specified multiple times to protect multiple
152152
branches.
153153
- `-p` / `--pattern` can be used to protect branches that match a supplied regex

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
trigger:
22
branches:
3-
include: [master, test-me-*]
3+
include: [main, test-me-*]
44
tags:
55
include: ['*']
66

0 commit comments

Comments
 (0)