From a6c5e54619aa9ba6ea2541b0f126a946ba241195 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 13 Mar 2026 13:59:56 +0100 Subject: [PATCH] feat : add Gitea TypeScript DTOs Co-Authored-By: Claude Opus 4.6 --- frontend/services/dto/gitea.ts | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 frontend/services/dto/gitea.ts diff --git a/frontend/services/dto/gitea.ts b/frontend/services/dto/gitea.ts new file mode 100644 index 0000000..4159691 --- /dev/null +++ b/frontend/services/dto/gitea.ts @@ -0,0 +1,57 @@ +export type GiteaSettings = { + url: string | null + hasToken: boolean +} + +export type GiteaSettingsWrite = { + url: string | null + token: string | null +} + +export type GiteaRepository = { + fullName: string + name: string + owner: string +} + +export type GiteaBranch = { + name: string + commits: GiteaCommit[] +} + +export type GiteaCommit = { + sha: string + message: string + author: string + date: string +} + +export type GiteaBranchCreate = { + type: string + baseBranch: string +} + +export type GiteaPullRequest = { + number: number + title: string + state: string + merged: boolean + headBranch: string + author: string + url: string + ciStatuses: GiteaCiStatus[] +} + +export type GiteaCiStatus = { + context: string + status: string + target_url: string +} + +export type GiteaBranchName = { + name: string +} + +export type GiteaTestResult = { + success: boolean +}