Label rageshakes from macOS and report the right operating system. (#4392)

This commit is contained in:
Doug
2025-08-07 12:39:29 +01:00
committed by GitHub
parent b2bc7c30a6
commit 2122379c60

View File

@@ -91,6 +91,10 @@ class BugReportService: NSObject, BugReportServiceProtocol {
bugReport.githubLabels.append("Nightly")
}
if ProcessInfo.processInfo.isiOSAppOnMac {
bugReport.githubLabels.append("macOS")
}
for label in bugReport.githubLabels {
params.append(MultipartFormData(key: "label", type: .text(value: label)))
}
@@ -191,7 +195,12 @@ class BugReportService: NSObject, BugReportServiceProtocol {
}
private var os: String {
"\(UIDevice.current.systemName) \(UIDevice.current.systemVersion)"
if ProcessInfo.processInfo.isiOSAppOnMac {
// The other APIs report macOS's equivalent iOS version, so lets use the right one to get the macOS version.
"macOS \(ProcessInfo.processInfo.operatingSystemVersionString)"
} else {
"\(UIDevice.current.systemName) \(UIDevice.current.systemVersion)"
}
}
private func zipFiles(_ logFiles: [URL]) async -> Logs {