Mirror Repo with same name project name issue #49

Closed
opened 2026-10-05 01:37:41 +02:00 by adam · 4 comments
Owner

I have multiple starred Github repo's which have the same project name but with different owners:

  • user1/awesome-project (original)
  • user2/awesome-project (fork with changes)
  • user3/awesome-project (fork with changes)

When I import to Gitea only the first repo imported shows up as:

  • starred/awesome-project

Is it possible to add a suffix with the user account like so they show up in Gitea as:

  • starred/awesome-project-user1
  • starred/awesome-project-user2
  • starred/awesome-project-user3

Or maybe an org per user:

  • user1/awesome-project
  • user2/awesome-project
  • user3/awesome-project

Thanks!

I have multiple starred Github repo's which have the same project name but with different owners: - user1/awesome-project (original) - user2/awesome-project (fork with changes) - user3/awesome-project (fork with changes) When I import to Gitea only the first repo imported shows up as: - starred/awesome-project Is it possible to add a suffix with the user account like so they show up in Gitea as: - starred/awesome-project-user1 - starred/awesome-project-user2 - starred/awesome-project-user3 Or maybe an org per user: - user1/awesome-project - user2/awesome-project - user3/awesome-project Thanks! <!-- github-sync-id:3406057957 -->
adam closed this issue 2026-10-05 01:37:41 +02:00
Author
Owner

@svh1985 Thanks for reporting this. Maybe we can make it configurable when conflicts like these happen.

@svh1985 Thanks for reporting this. Maybe we can make it configurable when conflicts like these happen. <!-- github-comment-id:3282314482 -->
Author
Owner

@svh1985 Please try v3.7.0 I have added one option in config. Let me know if this helps.

I have avoided adding org and also suffix together as that will cause migration headaches for existing users. Easiest was using prefix suffix so I have added that.

@svh1985 Please try v3.7.0 I have added one option in config. Let me know if this helps. I have avoided adding org and also suffix together as that will cause migration headaches for existing users. Easiest was using prefix suffix so I have added that. <!-- github-comment-id:3289083678 -->
Author
Owner

@arunavo4 Thanks it works well!

Two suggestions:

  1. Would it not make more sense to put the setting on the Gitea side? As it seems more like a "Target" setting, and Gitea is the target.
  2. I think it would be great to also have the option (maybe a checkmark) to always apply the pre/suffix.
@arunavo4 Thanks it works well! Two suggestions: 1. Would it not make more sense to put the setting on the Gitea side? As it seems more like a "Target" setting, and Gitea is the target. 2. I think it would be great to also have the option (maybe a checkmark) to always apply the pre/suffix. <!-- github-comment-id:3298834751 -->
Author
Owner

Sure will take the suggestions into consideration and make updates

Sure will take the suggestions into consideration and make updates <!-- github-comment-id:3298862077 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#49