Files
ios-gitea-prs/GiteaPR/Models/Repository.swift
T
Hermes 1025634978
Build iOS App / Build .ipa and publish source (push) Failing after 35s
GiteaPR: native iOS app to manage Gitea pull requests
Multi-repo PR inbox, review (approve/request changes/comment), merge with
gating toggle, read-only diff viewer, and Gitea Actions check status with
one-tap re-run. Ships unsigned via the iMac runner to the SideStore source.
2026-08-12 17:07:58 +00:00

29 lines
674 B
Swift

import Foundation
/// A GitHub/Gitea style owner (user or organization).
struct Owner: Codable, Hashable {
let id: Int64?
let login: String
let fullName: String?
}
/// A repository as returned by `/user/repos`.
struct Repository: Codable, Hashable, Identifiable {
let id: Int64
let name: String
let fullName: String
let owner: Owner
let `private`: Bool?
let htmlURL: String?
let defaultBranch: String?
enum CodingKeys: String, CodingKey {
case id, name
case fullName = "full_name"
case owner
case `private`
case htmlURL = "html_url"
case defaultBranch = "default_branch"
}
}