We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e8c85 commit 608a8c7Copy full SHA for 608a8c7
controllers/gitrepository_predicate.go
@@ -29,6 +29,16 @@ type GitRepositoryRevisionChangePredicate struct {
29
predicate.Funcs
30
}
31
32
+func (GitRepositoryRevisionChangePredicate) Create(e event.CreateEvent) bool {
33
+ src, ok := e.Object.(sourcev1.Source)
34
+
35
+ if !ok || src.GetArtifact() == nil {
36
+ return false
37
+ }
38
39
+ return true
40
+}
41
42
func (GitRepositoryRevisionChangePredicate) Update(e event.UpdateEvent) bool {
43
if e.ObjectOld == nil || e.ObjectNew == nil {
44
return false
0 commit comments