diff --git a/README.md b/README.md index cccbb50..9629d27 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ or something like this. You run it like this (see `webhooker --help` to get more help): ``` -webhooker -p 3434 -i 127.0.0.1 piranha/webhooker:master='echo $COMMIT' +webhooker -p 3434 -i 127.0.0.1 piranha/webhooker:main='echo $COMMIT' ``` It runs every command in `sh`, so you can use more complex commands (with `&&` diff --git a/webhooker_test.go b/webhooker_test.go index abdb0fa..7bbbd8d 100644 --- a/webhooker_test.go +++ b/webhooker_test.go @@ -28,7 +28,7 @@ func (r *MockedRule) Run(data Payload) (string, error) { func TestRunIsCalled(t *testing.T) { data := &GithubPayload{ - Ref: "refs/heads/master", + Ref: "refs/heads/main", Repository: GithubRepo{ Name: "webhooker", FullName: "piranha/webhooker", @@ -39,7 +39,7 @@ func TestRunIsCalled(t *testing.T) { Pattern: "nothing", } right := &MockedRule{ - Pattern: "piranha/webhooker:master", + Pattern: "piranha/webhooker:main", } wrong.On("Match", GetPath(data)).Return(false)