github RayLabsHQ/gitea-mirror v3.66.0

one hour ago

Features

  • Add a GitHub user like an organization (#663, #644, thanks @MajMcCloud, whose #661 this is based on). The Add dialog on the Organizations page now also takes a GitHub user, by name or profile URL, and adds the public repositories the user owns. The user's card shows a User badge instead of a role, its buttons say Mirror User and Sync User, and it works like an organization's: mirror options, Skip forks, destination, source pin, ignore and delete, and the user's new repositories are found the same way. Under the Preserve and Mixed strategies they go to an organization named after the user. The account a source connects with is refused, since its repositories are imported already. GitHub sources only. See Adding a GitHub user.
  • Renamed and transferred repositories are followed (#664). A repository renamed or moved to another owner on the source was listed under its new name, which nothing tracked, so it was added a second time and, with automatic mirroring on, mirrored twice. Gitea Mirror now stores the id GitHub, GitLab and Gitea give each repository, which survives a rename and a transfer, and an entry whose id shows up under a new name takes that name and owner, keeping its mirror, settings and history. The Activity Log says what changed. The mirror keeps its name on the destination and keeps pulling from the old address, which the source redirects; rename it there to match and the next sync finds it. No extra GitHub requests. See Renamed and transferred repositories.
  • sync_organization MCP tool (#663). Does what Sync does on the Organizations page, for an organization or a GitHub user: checks it for new repositories, mirrors the new ones and syncs the rest. list_organizations marks users and add_organization takes a user name.

Fixes

  • A rate limit stop counted as a failure outside scheduled runs (#662, #660, thanks @zwimer). When GitHub's hourly budget ran out during a job that resumed after a restart, the log showed the stop twice at ERROR with stack traces, the job was marked failed, and the repository stayed failed until the next sync. Mirror and Sync from the Repositories page also marked the job and the repository failed. Now every path does what scheduled runs did: one WARN line, the repository goes back to the status it had, and the job and its Activity Log entry are a warning, so no "Mirror Failed" notification is sent for it. Repositories a restart left for such a job say the next run picks them up.

Notes

  • Two database migrations, applied on startup: organizations.kind (existing organizations stay organizations) and repositories.source_repo_id.
  • Repositories added before this release get their source id the next time a listing names them, so a rename before that is not followed.
  • The organizations CSV export has a new kind column after name.

As always, back up your Gitea before upgrading.

Full changelog: v3.65.0...v3.66.0

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.