Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/App/Core/Github.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ extension Github {
}

guard response.status == .ok else {
Current.logger().warning("fetchResource request failed with status \(response.status)")
Current.logger().warning("fetchResource<\(T.self)> request failed with status \(response.status)")
throw Error.requestFailed(response.status)
}

Expand Down Expand Up @@ -390,6 +390,7 @@ extension Github {
case patreon = "PATREON"
case polar = "POLAR"
case tidelift = "TIDELIFT"
case thanksDev = "THANKS_DEV"
}

var platform: Platform
Expand Down
3 changes: 3 additions & 0 deletions Sources/App/Models/FundingLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct FundingLink: Codable, Equatable {
case patreon
case polar
case tidelift
case thanksDev
}

var platform: Platform
Expand Down Expand Up @@ -84,6 +85,8 @@ extension FundingLink.Platform {
self = .polar
case .tidelift:
self = .tidelift
case .thanksDev:
self = .thanksDev
}
}
}
1 change: 1 addition & 0 deletions Sources/App/Views/PackageController/PackageShow+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ extension FundingLink {
case .patreon: return "Patreon"
case .polar: return "Polar"
case .tidelift: return "Tidelift"
case .thanksDev: return "thanks.dev"
}
}
}
Loading