Skip to content

Commit

Permalink
rename main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha committed Apr 14, 2023
1 parent fcdb82b commit d24190b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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 `&&`
Expand Down
4 changes: 2 additions & 2 deletions webhooker_test.go
Expand Up @@ -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",
Expand All @@ -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)
Expand Down

0 comments on commit d24190b

Please sign in to comment.