fix(gitea-bot): add write:organization scope so bot can create repos

Without this the bot PAT 403s on POST /orgs/{org}/repos, which is
the single most important operation — creating new project repos
inside the workspace's Gitea org.

Made-with: Cursor
This commit is contained in:
2026-04-21 11:05:55 -07:00
parent d9d3514647
commit 6f79a88abd
66 changed files with 2088 additions and 1713 deletions

View File

@@ -58,13 +58,20 @@ export default function RootLayout({
{children}
<Toaster />
</Providers>
<script dangerouslySetInnerHTML={{ __html: `
{/* Service worker breaks Next dev (RSC / __nextjs_* fetches need a real Response). Prod only. */}
{process.env.NODE_ENV === "production" ? (
<script
dangerouslySetInnerHTML={{
__html: `
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(() => {});
});
}
`}} />
`,
}}
/>
) : null}
</body>
</html>
);