mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 10:50:33 +00:00
includes fix for #335 in exp branch
This commit is contained in:
parent
96e660381f
commit
b9c103cef8
1 changed files with 4 additions and 0 deletions
|
@ -152,6 +152,10 @@ func (r *Gitlab) ParseHook(req *http.Request) (*model.Hook, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if len(parsed.After) == 0 || parsed.TotalCommitsCount == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if parsed.ObjectKind == "merge_request" {
|
||||
// TODO (bradrydzewski) figure out how to handle merge requests
|
||||
return nil, nil
|
||||
|
|
Loading…
Reference in a new issue