feat: MokoGitea update checker system #74

Closed
opened 2026-05-13 00:12:56 +00:00 by jmiller · 1 comment
Owner

Summary

Build a MokoGitea-native update checker to replace the removed upstream Gitea update checker. The upstream checker has been removed from the codebase as part of the fork separation (it pointed to dl.gitea.com/gitea/version.json and would show misleading "update available" banners for upstream Gitea releases).

Requirements

  • Create a version endpoint on git.mokoconsulting.tech that serves MokoGitea release versions
  • Implement modules/updatechecker/ with MokoGitea-specific version checking against our own endpoint
  • Register as a cron task in services/cron/tasks_extended.go
  • Show update banner on admin dashboard when a new MokoGitea version is available
  • Version comparison should use MokoGitea versioning scheme (e.g. v1261.0.0)
  • Endpoint should be configurable via app.ini ([cron.update_checker] section)

Context

  • The upstream modules/updatechecker/update_checker.go was removed along with its cron registration, install form checkbox, and admin dashboard banner
  • MokoGitea uses its own versioning independent of upstream Gitea
  • The version endpoint should be self-hosted on our MokoGitea instance

Related Work

  • Upstream Gitea references (docs.gitea.com, about.gitea.com) are being replaced throughout the codebase as part of the fork separation
  • Dot-repo privacy enforcement feature is also planned

Authored-by: Moko Consulting

## Summary Build a MokoGitea-native update checker to replace the removed upstream Gitea update checker. The upstream checker has been removed from the codebase as part of the fork separation (it pointed to `dl.gitea.com/gitea/version.json` and would show misleading "update available" banners for upstream Gitea releases). ## Requirements - [ ] Create a version endpoint on `git.mokoconsulting.tech` that serves MokoGitea release versions - [ ] Implement `modules/updatechecker/` with MokoGitea-specific version checking against our own endpoint - [ ] Register as a cron task in `services/cron/tasks_extended.go` - [ ] Show update banner on admin dashboard when a new MokoGitea version is available - [ ] Version comparison should use MokoGitea versioning scheme (e.g. `v1261.0.0`) - [ ] Endpoint should be configurable via `app.ini` (`[cron.update_checker]` section) ## Context - The upstream `modules/updatechecker/update_checker.go` was removed along with its cron registration, install form checkbox, and admin dashboard banner - MokoGitea uses its own versioning independent of upstream Gitea - The version endpoint should be self-hosted on our MokoGitea instance ## Related Work - Upstream Gitea references (`docs.gitea.com`, `about.gitea.com`) are being replaced throughout the codebase as part of the fork separation - Dot-repo privacy enforcement feature is also planned --- *Authored-by: Moko Consulting*
Author
Owner

Verified on v1.26.1-moko.3

Implementation

  • Cron task registered: runs at startup + every 24h
  • Checks git.mokoconsulting.tech releases API
  • Compares semver to running version
  • Shows banner in admin dashboard when update available

Config

[update_checker]
ENABLED = true
ENDPOINT = https://git.mokoconsulting.tech/api/v1/repos/MokoConsulting/MokoGitea/releases/latest

Authored-by: Claude Opus 4.6 (1M context)

## Verified on v1.26.1-moko.3 ### Implementation - Cron task registered: runs at startup + every 24h - Checks git.mokoconsulting.tech releases API - Compares semver to running version - Shows banner in admin dashboard when update available ### Config ```ini [update_checker] ENABLED = true ENDPOINT = https://git.mokoconsulting.tech/api/v1/repos/MokoConsulting/MokoGitea/releases/latest ``` *Authored-by: Claude Opus 4.6 (1M context)*
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#74