mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
feat(dashboard): update check logic: versions, GitHub release and compare answers, build wording
Pure part of the update check: tag versions compared numerically, the latest
release and compare answers read (GitHub's error bodies refused), and the
running build worded for people ("release v3.0.0", "a local development
build of commit 1a2b3c4d with uncommitted changes"). Tested with small
hand-written samples of the answers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
11
tests/dWebTests/UpdateCheckSamples/compare_behind.json
Normal file
11
tests/dWebTests/UpdateCheckSamples/compare_behind.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"url": "https://api.github.com/repos/example/server/compare/1a2b3c4d5e6f...main",
|
||||
"html_url": "https://github.com/example/server/compare/1a2b3c4d5e6f...main",
|
||||
"permalink_url": "https://github.com/example/server/compare/example:1a2b3c4...example:9f8e7d6",
|
||||
"status": "ahead",
|
||||
"ahead_by": 12,
|
||||
"behind_by": 0,
|
||||
"total_commits": 12,
|
||||
"commits": [],
|
||||
"files": []
|
||||
}
|
||||
Reference in New Issue
Block a user