diff --git a/app/settings.tsx b/app/settings.tsx
index 9977f1e..c8bc948 100644
--- a/app/settings.tsx
+++ b/app/settings.tsx
@@ -402,6 +402,25 @@ export default function SettingsScreen() {
{gitProvider === "gitea" && (
<>
+
+
+ Instance URL
+ {" — base URL only, no trailing slash, no /api/v1.\n"}
+ Token
+ {" — Gitea PAT with write:repository scope. Paste the token value only (no \"Bearer\" prefix).\n"}
+ Repository
+ {" — must have at least one commit (initialize it with a README if empty)."}
+
+
= {
message: `incident: ${incident.title}`,
content: base64Content,
+ branch: "main",
};
if (sha) payload.sha = sha;
@@ -94,7 +98,11 @@ async function pushGitea(
if (!res.ok) {
const body = await res.text();
- return { success: false, error: `HTTP ${res.status}: ${body.slice(0, 300)}` };
+ let hint = "";
+ if (res.status === 404) {
+ hint = "\n\nCheck: instance URL (no /api/v1), owner and repo names are exact, token has write:repository scope, and the repo exists on Gitea.";
+ }
+ return { success: false, error: `HTTP ${res.status}: ${body.slice(0, 300)}${hint}` };
}
const data = await res.json() as { content?: { html_url?: string } };
return { success: true, url: data.content?.html_url };