mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-22 23:51:42 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/282
Author: @arunavo4
Created: 5/4/2026
Status: ✅ Merged
Merged: 5/4/2026
Merged by: @arunavo4
Base:
main← Head:feat/auto-mirror-owned-ui📝 Commits (1)
8327be3feat: surface auto-mirror toggle in automation settings (refs #278)📊 Changes
3 files changed (+29 additions, -0 deletions)
View changed files
📝
src/components/config/AutomationSettings.tsx(+25 -0)📝
src/lib/utils/config-mapper.ts(+3 -0)📝
src/types/config.ts(+1 -0)📄 Description
Summary
Follow-up to #281 / v3.15.8. That PR made
scheduleConfig.autoMirroran independent trigger in the scheduler, but it was still reachable only via theAUTO_MIRROR_REPOSenv var. This PR surfaces it in the UI so the option can be toggled per-config without touching the environment.config-mapper.tsround-tripsautoMirrorthrough the UI ↔ DB boundary;ScheduleConfigintypes/config.tsgets the matching fieldNo schema or migration change —
autoMirrorwas already in the zod schema (db/schema.ts:105).Test plan
bun test— full suite, 234 pass / 0 failbunx tsc --noEmit— no type errors in changed filesbun run build— cleanconfig-mapper.test.ts. Recommended manual check before release: load/config, switch to Automation tab, toggle the new checkbox, save, reload, confirm value persists. Then verify withautoMirrorStarred=false+autoMirror=truethat newly imported owned repos mirror on the next scheduler tick.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.