feat: MokoGitea update checker system #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.jsonand would show misleading "update available" banners for upstream Gitea releases).Requirements
git.mokoconsulting.techthat serves MokoGitea release versionsmodules/updatechecker/with MokoGitea-specific version checking against our own endpointservices/cron/tasks_extended.gov1261.0.0)app.ini([cron.update_checker]section)Context
modules/updatechecker/update_checker.gowas removed along with its cron registration, install form checkbox, and admin dashboard bannerRelated Work
docs.gitea.com,about.gitea.com) are being replaced throughout the codebase as part of the fork separationAuthored-by: Moko Consulting
Verified on v1.26.1-moko.3
Implementation
Config
Authored-by: Claude Opus 4.6 (1M context)
Testing Proof — Verified on production (v1.26.1+257)
Step-by-step
Checked healthz endpoint:
Description field correctly shows "MokoGitea" (not "Gitea").
Checked binary version:
Update checker: The version reporting and health description are correct. Update checker cron output not visible in container logs — may need admin panel verification for the update banner UI.
Result: PARTIAL PASS — version/branding verified, update cron needs admin panel check
— Claude Code (Opus 4.6)
Testing Plan — Manual Verification Steps
The automated tests confirmed version reporting and branding work, but the update checker UI needs manual admin panel verification.
Step 1: Check Update Checker Cron Registration
update_checkerorcheck_for_updatesStep 2: Check Update Banner in Admin Panel
Step 3: Check Update Checker API/Logs
Step 4: Verify Update Source Configuration
If no
[cron.update_checker]section exists, the feature may use Gitea defaults (checks git.mokoconsulting.tech releases API).Acceptance Criteria
Once all checkboxes are confirmed, close this issue with the results.
— Claude Code (Opus 4.6)
Testing Plan — Manual Verification Steps
The automated tests confirmed version reporting and branding work, but the update checker UI needs manual admin panel verification.
Step 1: Check Update Checker Cron Registration
update_checkerorcheck_for_updatesor similarStep 2: Check Update Banner in Admin Panel
Step 3: Check Update Checker API/Logs
{"message":"invalid username, password or token","url":"https://git.mokoconsulting.tech/api/swagger"}
Step 4: Verify Update Source Configuration
If no
[cron.update_checker]section exists, the feature may use Gitea defaults (checks git.mokoconsulting.tech releases API).Acceptance Criteria
Once all checkboxes are confirmed, close this issue with the results.
— Claude Code (Opus 4.6)
Verified and Deployed in v1.26.1-moko.04.00.00
Implementation
Verification
Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com