[GH-ISSUE #326] Config: Name Collision Strategy dropdown does not persist (no save button) #5217

Open
opened 2026-06-18 18:08:24 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @agent00bob on GitHub (Jun 17, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/326

Description

The Name Collision Strategy setting in Configuration → Connections → GitHub Configuration defaults to repo-owner. Changing it to owner-repo does not persist; navigating away and returning shows it reverted to repo-owner. There is no explicit Save button for this setting.

Other settings on the same page auto-save correctly; only this drop-down is affected.

Impact: Repos are being created with the repo-owner naming pattern even after attempting to change the setting — confirming the change is not being persisted at all, not just a UI display issue.

Under the hood

Field appears to map to starredDuplicateStrategy in the configs table (schema: "suffix" | "prefix" | "owner-org", default "suffix"). Guessing that the onChange handler either doesn't fire or the save call silently fails.

Additionally, the docs don't list an environment variable for this field, so I was unable to test or workaround the issue by setting via the compose file.

Environment

  • Gitea-Mirror Version: v3.19.1
  • Install: Fresh Docker install
  • Browser: Firefox

Steps to Reproduce

  1. Configuration → Connections → GitHub Configuration
  2. Change Name Collision Strategy from repo-owner to owner-repo
  3. Navigate to another settings page
  4. Return to GitHub Configuration
  5. Name Collision Strategy is back to repo-owner

Expected

Selection persists after change (auto-save like other dropdowns) or a Save button is present for the setting.

Originally created by @agent00bob on GitHub (Jun 17, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/326 ### Description The `Name Collision Strategy` setting in Configuration → Connections → GitHub Configuration defaults to `repo-owner`. Changing it to `owner-repo` does not persist; navigating away and returning shows it reverted to `repo-owner`. There is no explicit Save button for this setting. Other settings on the same page auto-save correctly; only this drop-down is affected. Impact: Repos are being created with the repo-owner naming pattern even after attempting to change the setting — confirming the change is not being persisted at all, not just a UI display issue. ### Under the hood Field appears to map to starredDuplicateStrategy in the configs table (schema: "suffix" | "prefix" | "owner-org", default "suffix"). Guessing that the onChange handler either doesn't fire or the save call silently fails. Additionally, the docs don't list an environment variable for this field, so I was unable to test or workaround the issue by setting via the compose file. ### Environment - Gitea-Mirror Version: v3.19.1 - Install: Fresh Docker install - Browser: Firefox ### Steps to Reproduce 1. Configuration → Connections → GitHub Configuration 2. Change `Name Collision Strategy` from `repo-owner` to `owner-repo` 3. Navigate to another settings page 4. Return to GitHub Configuration 5. `Name Collision Strategy` is back to `repo-owner` ### Expected Selection persists after change (auto-save like other dropdowns) or a Save button is present for the setting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#5217