diff --git a/pkg/remote/builtin/github/github.go b/pkg/remote/builtin/github/github.go index fcbe4448a..9ff0fe079 100644 --- a/pkg/remote/builtin/github/github.go +++ b/pkg/remote/builtin/github/github.go @@ -301,6 +301,9 @@ func (g *GitHub) pullRequest(r *http.Request) (*common.Hook, error) { if hook.Action != "opened" && hook.Action != "synchronize" { return nil, nil } + if *hook.PullRequest.State != "open" { + return nil, nil + } repo := &common.Repo{} repo.Owner = *hook.Repo.Owner.Login