From d68b822c765ec35af9f35ff1c2fb7416c66c6e2b Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Tue, 24 Jun 2025 13:54:47 +0530 Subject: [PATCH] feat: enhance OrganizationStrategy component with override options for mirror destinations --- .../config/OrganizationStrategy.tsx | 74 +++++++++++++++++-- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git a/src/components/config/OrganizationStrategy.tsx b/src/components/config/OrganizationStrategy.tsx index 0bdce9d..4759cfc 100644 --- a/src/components/config/OrganizationStrategy.tsx +++ b/src/components/config/OrganizationStrategy.tsx @@ -281,14 +281,78 @@ export const OrganizationStrategy: React.FC = ({ }) => { return (
-
-

+
+
+

Organization Strategy

-

- Choose how your repositories will be organized in Gitea -

+

+ Choose how your repositories will be organized in Gitea +

+
+ +
+ + + + + +
+
+

Fine-tune Your Mirror Destinations

+

+ After selecting a strategy, you can customize destinations for specific organizations and repositories. +

+
+ +
+
+
+ + Organization Overrides +
+

+ Click the edit button on any organization card to redirect all its repositories to a different Gitea organization. +

+
+ +
+
+ + Repository Overrides +
+

+ Use the inline editor in the repository table's "Destination" column to set custom destinations for individual repositories. +

+
+ +
+
+ + Starred Repositories +
+

+ Always go to the configured starred repos organization and cannot be overridden. +

+
+
+ +
+

+ Priority: Repository override → Organization override → Strategy default +

+
+
+
+
+