includes fix for #335 in exp branch

This commit is contained in:
Brad Rydzewski 2014-09-06 13:08:56 -07:00
parent 96e660381f
commit b9c103cef8

View file

@ -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