[PR #202] [MERGED] feat: add target organization to Add Repository dialog #2611

Closed
opened 2026-05-15 05:16:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/202
Author: @arunavo4
Created: 3/1/2026
Status: Merged
Merged: 3/1/2026
Merged by: @arunavo4

Base: mainHead: feat/add-repo-target-org


📝 Commits (2)

  • fe25a6c feat: add target organization field to Add Repository dialog
  • dc43f33 docs: add screenshot of target organization field in Add Repository dialog

📊 Changes

5 files changed (+37 additions, -3 deletions)

View changed files

docs/images/add-repo-target-org.png (+0 -0)
📝 src/components/repositories/AddRepositoryDialog.tsx (+31 -1)
📝 src/components/repositories/Repository.tsx (+3 -0)
📝 src/pages/api/sync/repository.ts (+2 -2)
📝 src/types/Repository.ts (+1 -0)

📄 Description

Summary

  • Adds an optional Target Organization field to the "Add Repository" dialog, allowing users to specify a destination Gitea org/user when adding a single repository
  • When left empty, the default mirror strategy is used (no behavior change)
  • The value is stored as the repo's destinationOrg override, same as editing it inline in the repository table

Closes #200

Screenshot

Add Repository Dialog with Target Organization field

Test plan

  • Build passes (bun run build)
  • All 248 tests pass (bun test)
  • Add a repo without filling Target Organization → should use default strategy (same as before)
  • Add a repo with Target Organization set → repo should show the custom org in the destination column
  • Force-refresh an existing repo without Target Organization → existing destinationOrg should be preserved
  • Force-refresh an existing repo with a new Target Organization → should update the destination

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/202 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 3/1/2026 **Status:** ✅ Merged **Merged:** 3/1/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `feat/add-repo-target-org` --- ### 📝 Commits (2) - [`fe25a6c`](https://github.com/RayLabsHQ/gitea-mirror/commit/fe25a6c07cfd56cc896114eef6e67d3eb2730aad) feat: add target organization field to Add Repository dialog - [`dc43f33`](https://github.com/RayLabsHQ/gitea-mirror/commit/dc43f332f89e9c99db172987313390ef09e2aad3) docs: add screenshot of target organization field in Add Repository dialog ### 📊 Changes **5 files changed** (+37 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `docs/images/add-repo-target-org.png` (+0 -0) 📝 `src/components/repositories/AddRepositoryDialog.tsx` (+31 -1) 📝 `src/components/repositories/Repository.tsx` (+3 -0) 📝 `src/pages/api/sync/repository.ts` (+2 -2) 📝 `src/types/Repository.ts` (+1 -0) </details> ### 📄 Description ## Summary - Adds an optional **Target Organization** field to the "Add Repository" dialog, allowing users to specify a destination Gitea org/user when adding a single repository - When left empty, the default mirror strategy is used (no behavior change) - The value is stored as the repo's `destinationOrg` override, same as editing it inline in the repository table Closes #200 ## Screenshot ![Add Repository Dialog with Target Organization field](https://raw.githubusercontent.com/RayLabsHQ/gitea-mirror/feat/add-repo-target-org/docs/images/add-repo-target-org.png) ## Test plan - [x] Build passes (`bun run build`) - [x] All 248 tests pass (`bun test`) - [ ] Add a repo without filling Target Organization → should use default strategy (same as before) - [ ] Add a repo with Target Organization set → repo should show the custom org in the destination column - [ ] Force-refresh an existing repo without Target Organization → existing `destinationOrg` should be preserved - [ ] Force-refresh an existing repo with a new Target Organization → should update the destination 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-15 05:16:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#2611