ignore non-open pull requests
This commit is contained in:
parent
13a05a0106
commit
b00b46914d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue