Skip to content

Commit e4e0ca1

Browse files
committed
Update "master" references to "main"
This is becoming the standard branch name now, and the integration tests no longer work on my machine without this change.
1 parent f1f0c3d commit e4e0ca1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ The `Enabled` property accepts multiple formats:
7474
# true/false to enable/disable the validation (branch agnostic)
7575
Validators/Foo:
7676
Enabled: false
77-
# Array of String/Regex matching each branch for which it's enabled
77+
# Array of String or Regex matching each branch it's enabled on
7878
Validators/Bar:
7979
Enabled:
80-
- master
80+
- main
8181
- !ruby/regexp /\Afoo.+bar/
8282
```
8383

Diff for: test/integration/new_repo_test.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def shell_commands(gitdir)
3333
assert_match(/^#{commit_message}/, results)
3434
assert_match(/^1: Error: /, results)
3535
refute_match(/Warning:/, results)
36-
refute_match(/^\[master .+\]/, results)
36+
refute_match(/^\[main .+\]/, results)
3737
end
3838
end
3939

@@ -44,7 +44,7 @@ def shell_commands(gitdir)
4444
refute_match(/^#{commit_message}/, results)
4545
refute_match(/Error:/, results)
4646
refute_match(/Warning:/, results)
47-
assert_match(/^\[master .+\] #{commit_message}/, results)
47+
assert_match(/^\[main .+\] #{commit_message}/, results)
4848
end
4949
end
5050

@@ -55,7 +55,7 @@ def shell_commands(gitdir)
5555
refute_match(/^#{commit_message}/, results)
5656
refute_match(/Error/, results)
5757
assert_match(/^1: Warning: /, results)
58-
assert_match(/^\[master .+\] #{commit_message}/, results)
58+
assert_match(/^\[main .+\] #{commit_message}/, results)
5959
end
6060
end
6161
end

0 commit comments

Comments
 (0)