github RayLabsHQ/gitea-mirror v3.15.5

16 hours ago

What's Changed

Follow-up to v3.15.4 — relaxes the dashboard config gate so users with tokens but no username don't get locked out.

Fixed

  • Dashboard rendered all zeros for users whose config had empty username fields (#271). The useConfigStatus hook required githubConfig.username and giteaConfig.username to be non-empty before letting the dashboard fetch data. In practice neither is required at runtime:

    • The GitHub token is self-authenticating via listForAuthenticatedUser — no username needed.
    • The Gitea username isn't used under single-org or flat-user mirror strategies.

    Users who configured via env vars without setting GITHUB_USERNAME / GITEA_USERNAME (the form's required attribute is only client-side and the save endpoint doesn't enforce it either) ended up with empty strings in those fields. Mirroring kept running fine because tokens alone are sufficient — but the dashboard refused to fetch and rendered zeros.

    The gate now only requires what's actually needed at runtime: the GitHub token, and the Gitea URL + token. The githubOwner field is still exported for consumers that want to display an owner; only the gate is relaxed.

Compatibility

No schema changes, no migrations. Pure frontend hook change.

Verification

All 231 unit tests pass. bun run build succeeds.

Full Changelog: v3.15.4...v3.15.5

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.