Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 276a094

Browse files
committed
Consider "master" a main branch too by default
When not git-protecting any branch, we cannot know if `master` or `main` are main branches. Just use both.
1 parent d46b05b commit 276a094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{% if github %}.github{% endif %}/workflows/pre-commit.yml.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
{%- for branch in protected_branches or ["main"] %}
7+
{%- for branch in protected_branches or ["main", "master"] %}
88
- {{ branch }}
99
{%- endfor %}
1010

0 commit comments

Comments
 (0)