Add default event filter (#1140)

breakout from #934

when new events are added you don't have to worry that pipeline will behave different as it does now with this

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
6543
2022-08-30 00:36:37 +02:00
committed by GitHub
parent 7e18e69563
commit ca84f703e3
6 changed files with 101 additions and 65 deletions

View File

@@ -465,7 +465,9 @@ depends_on: [ shouldbefiltered ]
func TestTree(t *testing.T) {
t.Parallel()
build := &model.Build{}
build := &model.Build{
Event: model.EventPush,
}
b := ProcBuilder{
Repo: &model.Repo{},