github RayLabsHQ/gitea-mirror v3.15.10

one hour ago

What's new

feat: opt out of collaborator repos in GitHub imports (#283, closes #279)

GitHub's authenticated repo listing returns every repo the user has access to by default — owner, collaborator, and organization member. For users who only want to mirror their own work, collaborator repos showed up as noise.

This release adds an Include collaborator repositories toggle in the GitHub configuration panel. When unchecked, the import scopes the GitHub API affiliation filter to owner only, so collaborator-only repos are excluded.

  • Default: on. Existing users see no behavior change. Uncheck to opt out.
  • New env var INCLUDE_COLLABORATOR_REPOS (default true) for env-driven (Docker) deployments. Set to false to disable from the environment without touching the UI.
  • Cleanup safety net. When the toggle is off, the orphan-cleanup pass still asks GitHub for the full list (owner + collaborator), so previously-mirrored collaborator repos are not flagged as orphaned and archived/deleted. Toggling the option off only affects what gets imported, never what gets removed.
  • Round-trip and affiliation tests in src/lib/utils/config-mapper.test.ts and src/lib/github-affiliation.test.ts.

This is the proper rewrite of #279, which was closed because the field had been added to the UI type only and never reached the runtime read site.

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.