···11+import Foundation
22+33+/// Action to perform automatically when a worktree's pull request is merged.
44+///
55+/// Use as `MergedWorktreeAction?` where `nil` means no automatic action.
66+nonisolated enum MergedWorktreeAction: String, CaseIterable, Codable, Equatable, Sendable, Identifiable {
77+ case archive
88+99+ /// Deletes the worktree. Whether the local branch is also deleted
1010+ /// depends on the `deleteBranchOnDeleteWorktree` setting.
1111+ case delete
1212+1313+ var id: String { rawValue }
1414+1515+ var title: String {
1616+ switch self {
1717+ case .archive: return "Archive"
1818+ case .delete: return "Delete"
1919+ }
2020+ }
2121+}