summaryrefslogtreecommitdiff
path: root/Hutch/Models/Patchset.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-07 17:41:00 -0500
committerGitHub <[email protected]>2026-08-07 17:41:00 -0500
commitff200d21e93d6683f779fe1f3280ac8d8561d393 (patch)
treef6603518ba62134faa699d864003b90464930ab9 /Hutch/Models/Patchset.swift
parent9d85bc7c154843693913bf0cc67c6e9ff0d8f897 (diff)
parent283fbf00fdffd64c924b6cb22c84e803b718f078 (diff)
downloadhutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.gz
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.tar.bz2
hutch-ff200d21e93d6683f779fe1f3280ac8d8561d393.zip
Merge pull request #39 from krazywarez/fix-actor-isolationHEADmain
Adopt Swift 6 language mode
Diffstat (limited to 'Hutch/Models/Patchset.swift')
-rw-r--r--Hutch/Models/Patchset.swift12
1 files changed, 6 insertions, 6 deletions
diff --git a/Hutch/Models/Patchset.swift b/Hutch/Models/Patchset.swift
index 330bbbc..cc10b35 100644
--- a/Hutch/Models/Patchset.swift
+++ b/Hutch/Models/Patchset.swift
@@ -1,7 +1,7 @@
import Foundation
/// Review state of a patchset on lists.sr.ht.
-enum PatchsetStatus: String, Codable, Sendable, CaseIterable {
+nonisolated enum PatchsetStatus: String, Codable, Sendable, CaseIterable {
case unknown = "UNKNOWN"
case proposed = "PROPOSED"
case needsRevision = "NEEDS_REVISION"
@@ -55,7 +55,7 @@ enum PatchsetStatus: String, Codable, Sendable, CaseIterable {
/// A patchset as it appears in a mailing list listing, derived from the thread's
/// root email rather than a dedicated patchsets query — `MailingList` exposes no
/// such field.
-struct PatchsetSummary: Identifiable, Hashable, Sendable {
+nonisolated struct PatchsetSummary: Identifiable, Hashable, Sendable {
let id: Int
let subject: String
let version: Int
@@ -70,7 +70,7 @@ struct PatchsetSummary: Identifiable, Hashable, Sendable {
}
/// One email within a patchset: either the cover letter or a single patch.
-struct PatchsetEmail: Identifiable, Hashable, Sendable {
+nonisolated struct PatchsetEmail: Identifiable, Hashable, Sendable {
let id: Int
let subject: String
let date: Date?
@@ -88,13 +88,13 @@ struct PatchsetEmail: Identifiable, Hashable, Sendable {
}
/// A build or check reported against a patchset.
-struct PatchsetToolResult: Identifiable, Hashable, Sendable {
+nonisolated struct PatchsetToolResult: Identifiable, Hashable, Sendable {
let id: Int
let icon: PatchsetToolIcon
let details: String
}
-enum PatchsetToolIcon: String, Codable, Sendable {
+nonisolated enum PatchsetToolIcon: String, Codable, Sendable {
case pending = "PENDING"
case waiting = "WAITING"
case success = "SUCCESS"
@@ -112,7 +112,7 @@ enum PatchsetToolIcon: String, Codable, Sendable {
}
/// A patchset with its cover letter, patches, and review context.
-struct PatchsetDetail: Sendable {
+nonisolated struct PatchsetDetail: Sendable {
let id: Int
let created: Date
let updated: Date