mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
21 lines
437 B
Swift
21 lines
437 B
Swift
//
|
|
// 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) }
|
|
}
|