Commit cb52a04ea9

cb52a04ea9441496db09c8828ea83ef187fff1a3

parent: d525c0e4ec

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-22 21:15 UTC

builds: comments that say what is true now

Layout: unified · split

gitbay/Builds/BuildModels.swift +2 −2
@@ -22,8 +22,8 @@ nonisolated struct Build: Decodable, Sendable, Hashable, Identifiable {
2222
2323 var id: Int64 { number }
2424 var shortSHA: String { String(sha.prefix(10)) }
25 /// What a row leads with. Recognising a build by its sha meant
26 /// opening the commit or already knowing it (krz/gitbay#241).
25 /// What a row leads with. A sha alone does not say what was built
26 /// (krz/gitbay#241).
2727 var title: String {
2828 if let subject, !subject.isEmpty { return "#\(number) \(subject)" }
2929 return "#\(number) \(shortSHA)"
gitbayTests/IssueBuildViewModelTests.swift +3 −3
@@ -173,9 +173,9 @@ struct BuildListViewModelTests {
173173 filter.status = .failure
174174 filter.job = "test"
175175 model.filter = filter
176 // `load()` leaves the previous list showing until the reply lands
177 // rather than blanking it, so a "not loading" check would pass
178 // before the reload finished: wait for the result itself.
176 // The reload runs in a Task that has not started when `filter` is
177 // assigned, so a "not loading" check would pass before it finished:
178 // wait for the result itself.
179179 await until {
180180 if case .empty = model.state { return true }
181181 return false