repository cleanup functionality

This commit is contained in:
Arunavo Ray
2025-08-27 19:12:52 +05:30
parent 698eb0b507
commit 38a0d1b494
3 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
DONT HALLUCIATE THINGS. IF YOU DONT KNOW LOOK AT THE CODE OR ASK FOR DOCS DONT HALLUCIATE THINGS. IF YOU DONT KNOW LOOK AT THE CODE OR ASK FOR DOCS
NEVER MENTION CLAUDE CODE ANYWHERE.
## Project Overview ## Project Overview
Gitea Mirror is a web application that automatically mirrors repositories from GitHub to self-hosted Gitea instances. It uses Astro for SSR, React for UI, SQLite for data storage, and Bun as the JavaScript runtime. Gitea Mirror is a web application that automatically mirrors repositories from GitHub to self-hosted Gitea instances. It uses Astro for SSR, React for UI, SQLite for data storage, and Bun as the JavaScript runtime.

View File

@@ -18,7 +18,7 @@ let isSchedulerRunning = false;
/** /**
* Parse schedule interval with enhanced support for duration strings, cron, and numbers * Parse schedule interval with enhanced support for duration strings, cron, and numbers
* Supports formats like: "8h", "30m", "24h", "0 */2 * * *", or plain numbers (seconds) * Supports formats like: "8h", "30m", "24h", "0 0/2 * * *", or plain numbers (seconds)
*/ */
function parseScheduleInterval(interval: string | number): number { function parseScheduleInterval(interval: string | number): number {
try { try {

View File

@@ -1,6 +1,6 @@
import type { APIRoute } from 'astro'; import type { APIRoute } from 'astro';
import { auth } from '@/lib/auth'; import { auth } from '@/lib/auth';
import { createSecureErrorResponse } from '@/lib/utils/error-handler'; import { createSecureErrorResponse } from '@/lib/utils';
import { triggerRepositoryCleanup } from '@/lib/repository-cleanup-service'; import { triggerRepositoryCleanup } from '@/lib/repository-cleanup-service';
/** /**