Files
ios-gitea-prs/GiteaPR/Models/ChangedFile.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

17 lines
515 B
Swift

import Foundation
/// One file changed by a PR, from `/repos/{owner}/{repo}/pulls/{index}/files`.
struct ChangedFile: Codable, Identifiable, Hashable {
let filename: String
let status: String? // added | removed | modified | renamed
let additions: Int
let deletions: Int
let patch: String? // unified diff hunks (only for small diffs)
var id: String { filename }
enum CodingKeys: String, CodingKey {
case filename, status, additions, deletions, patch
}
}