Ignore prerelease updates

This commit is contained in:
Max Goedjen
2020-09-20 20:25:04 -07:00
parent b0ae3c3eb7
commit 3801510731
2 changed files with 6 additions and 3 deletions

View File

@@ -11,9 +11,9 @@ class PreviewUpdater: UpdaterProtocol {
case .none:
self.update = nil
case .advisory:
self.update = Release(name: "10.10.10", html_url: URL(string: "https://example.com")!, body: "Some regular update")
self.update = Release(name: "10.10.10", prerelease: false, html_url: URL(string: "https://example.com")!, body: "Some regular update")
case .critical:
self.update = Release(name: "10.10.10", html_url: URL(string: "https://example.com")!, body: "Critical Security Update")
self.update = Release(name: "10.10.10", prerelease: false, html_url: URL(string: "https://example.com")!, body: "Critical Security Update")
}
}