[GH-ISSUE #304] Mirroring of external orgs only, not personal repos #6427

Closed
opened 2026-07-13 13:07:27 -05:00 by GiteaMirror · 9 comments
Owner

Originally created by @jenkin on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/304

Originally assigned to: @arunavo4 on GitHub.

Hi, first of all, awesome work, thanks!

I want to mirror several public orgs I'm not part of, importing them manually. I set my personal github configuration (ie. username and token), but I don't want to automatically import personal repositories or repos from my own orgs.

Now during scheduled import, all my own repos (personal and from my orgs) are imported and I need to ignore them all manually to prevent sync on gitea.

Can I get this result now or a new feature is needed?

Thanks!

Originally created by @jenkin on GitHub (May 28, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/304 Originally assigned to: @arunavo4 on GitHub. Hi, first of all, awesome work, thanks! I want to mirror several public orgs I'm not part of, importing them manually. I set my personal github configuration (ie. username and token), but I don't want to automatically import personal repositories or repos from my own orgs. Now during scheduled import, all my own repos (personal and from my orgs) are imported and I need to ignore them all manually to prevent sync on gitea. Can I get this result now or a new feature is needed? Thanks!
Author
Owner

@arunavo4 commented on GitHub (May 29, 2026):

@jenkin currently what you want excactly is not possible but I can add it for you.

<!-- gh-comment-id:4569593564 --> @arunavo4 commented on GitHub (May 29, 2026): @jenkin currently what you want excactly is not possible but I can add it for you.
Author
Owner

@jenkin commented on GitHub (May 29, 2026):

Thank you @arunavo4 , let me briefly describe my use case: https://codez.ombie.cash (its the gitea instance, of course gitea-mirror one is not exposed).

I want to track research and development activity of an open source project scattered on many repositories and organizations and people. I have two goals in mind: archiving and statistical analysis of code, metadata (ie. commit history), social layer (contributors, discussions).

After some attempts to find a good set of configuration options, now I'm missing two features:

  1. this one, so disabling mirroring and tracking of personal stuff
  2. enable mirroring and tracking of personal account other than mine, in addition to those of the orgs (see https://github.com/RayLabsHQ/gitea-mirror/issues/221)

Thank you very much for this project, very very useful.

<!-- gh-comment-id:4572110341 --> @jenkin commented on GitHub (May 29, 2026): Thank you @arunavo4 , let me briefly describe my use case: https://codez.ombie.cash (its the gitea instance, of course gitea-mirror one is not exposed). I want to track research and development activity of an open source project scattered on many repositories and organizations and people. I have two goals in mind: archiving and statistical analysis of code, metadata (ie. commit history), social layer (contributors, discussions). After some attempts to find a good set of configuration options, now I'm missing two features: 1. this one, so disabling mirroring and tracking of personal stuff 2. enable mirroring and tracking of personal account other than mine, in addition to those of the orgs (see https://github.com/RayLabsHQ/gitea-mirror/issues/221) Thank you very much for this project, very very useful.
Author
Owner

@arunavo4 commented on GitHub (Jun 14, 2026):

Added in v3.18.0 (#320). There's a new "Skip personal repositories" toggle (also settable with ONLY_MIRROR_ORGS=true, which existed before but did nothing). With it on, discovery skips repos owned by your own account and only pulls in org repos. Mirroring another user's personal repos (not an org) still isn't supported, that part is tracked in #221.

<!-- gh-comment-id:4700708303 --> @arunavo4 commented on GitHub (Jun 14, 2026): Added in v3.18.0 (#320). There's a new "Skip personal repositories" toggle (also settable with `ONLY_MIRROR_ORGS=true`, which existed before but did nothing). With it on, discovery skips repos owned by your own account and only pulls in org repos. Mirroring another user's personal repos (not an org) still isn't supported, that part is tracked in #221.
Author
Owner

@jenkin commented on GitHub (Jun 17, 2026):

@arunavo4 Thanks, I tested the new option and I can confirm that personal repos are ignored. 💪

But if I'm part of organizations I didn't explicitly add, their repos are synced as well! 😫

If confirmed, I can open a new issue.

<!-- gh-comment-id:4727048969 --> @jenkin commented on GitHub (Jun 17, 2026): @arunavo4 Thanks, I tested the new option and I can confirm that personal repos are ignored. 💪 But if I'm part of organizations I didn't explicitly add, their repos are synced as well! 😫 If confirmed, I can open a new issue.
Author
Owner

@arunavo4 commented on GitHub (Jun 17, 2026):

@jenkin in v3.19.x there is a new per-org "ignore" action.

<!-- gh-comment-id:4727114329 --> @arunavo4 commented on GitHub (Jun 17, 2026): @jenkin in v3.19.x there is a new per-org "ignore" action.
Author
Owner

@jenkin commented on GitHub (Jun 17, 2026):

Where? In the organizations section? There I can't find orgs I'm part of... I need to add them and then ignore?

<!-- gh-comment-id:4727159233 --> @jenkin commented on GitHub (Jun 17, 2026): Where? In the organizations section? There I can't find orgs I'm part of... I need to add them and then ignore?
Author
Owner

@arunavo4 commented on GitHub (Jun 19, 2026):

@jenkin so you are saying on the "organisations" page from the sidebar your orgs are not showing? did you make sure to add the orgs in the gh token? Is all the orgs not showing or few ?

<!-- gh-comment-id:4748052226 --> @arunavo4 commented on GitHub (Jun 19, 2026): @jenkin so you are saying on the "organisations" page from the sidebar your orgs are not showing? did you make sure to add the orgs in the gh token? Is all the orgs not showing or few ?
Author
Owner

@jenkin commented on GitHub (Jun 19, 2026):

Ah, ok, I figured it out! I ran a github sync and now I can see my orgs and I can disable them... thanks!

<!-- gh-comment-id:4751547422 --> @jenkin commented on GitHub (Jun 19, 2026): Ah, ok, I figured it out! I ran a github sync and now I can see my orgs and I can disable them... thanks!
Author
Owner

@jenkin commented on GitHub (Jun 19, 2026):

Ah, I just found this option...

Limit to specific organizations. Leave empty to mirror repos from every organization you belong to. Add one or more organizations to mirror only their repositories.

Maybe you can extend this option to take into account also the "don't mirror any org" scenario.

<!-- gh-comment-id:4751616527 --> @jenkin commented on GitHub (Jun 19, 2026): Ah, I just found this option... > Limit to specific organizations. Leave empty to mirror repos from every organization you belong to. Add one or more organizations to mirror only their repositories. Maybe you can extend this option to take into account also the "don't mirror any org" scenario.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#6427