Skip to content

Commit 1c21ce1

Browse files
Merge pull request #4034 from SwiftPackageIndex/fix-alerting-build-checks
Exclude triggered builds from check, filter on updated_at
2 parents d5ac0df + ae860ce commit 1c21ce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)