Skip to content

Commit ae860ce

Browse files
committed
Exclude triggered builds from check, filter on updated_at
1 parent d5ac0df commit ae860ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/App/Commands/Alerting.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ extension Alerting {
135135
.field(\.$runnerId)
136136
.field(\.$status)
137137
.field(\.$swiftVersion)
138-
.filter(Build.self, \.$createdAt >= cutoff)
138+
.filter(\.$status != .triggered)
139+
.filter(Build.self, \.$updatedAt >= cutoff)
139140
.sort(\.$createdAt, .descending)
140141
.limit(limit)
141142
.all()

0 commit comments

Comments
 (0)