mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 17:59:45 +00:00
Yattee v2 rewrite
This commit is contained in:
20
Yattee/Models/GitHubContributor.swift
Normal file
20
Yattee/Models/GitHubContributor.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// GitHubContributor.swift
|
||||
// Yattee
|
||||
//
|
||||
// Data model for GitHub contributor information.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
/// A GitHub repository contributor.
|
||||
struct GitHubContributor: Identifiable, Decodable, Sendable {
|
||||
let id: Int
|
||||
let login: String
|
||||
let avatarUrl: String
|
||||
let htmlUrl: String
|
||||
let contributions: Int
|
||||
|
||||
var avatarURL: URL? { URL(string: avatarUrl) }
|
||||
var profileURL: URL? { URL(string: htmlUrl) }
|
||||
}
|
||||
Reference in New Issue
Block a user