Repository navigation
K2GO-592 fix(forgejo): refresh the example repos after the seed so each repo shows its status - #820
Merged
Conversation
…ch repo shows its status Only the repo refresh writes the status description of a seeded repo, so after a new install the descriptions stayed empty until the first "Update repos". The seed now runs the same refresh right after it ends (best-effort).
luisguzman-adfa
deleted the
fix/K2GO-592-forgejo-seed-repo-description
branch
November 22, 2026 06:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
tools/forgejo-seed.shrunsrefresh_forgejo(the same refresh as "Update repos") right afterseed_forgejoends with success. Best-effort: a refresh problem does not fail the seed.Why
Only the repo refresh writes the status description of a seeded repo (
Last Update,Last Attempt,Status). After a new Forgejo install the descriptions stayed empty until the first "Update repos". Every install path (first install, Settings > Module management, the module action sheet, "Install repos") goes through this script, so all of them now get the descriptions. No new function and no new state: the description keeps its one writer (_fj_write_desc, called by the refresh).Steps to QA
Baseline (
main):GET /forgejo/api/v1/repos/search?q=knowledgetogoshows an emptydescription.Change (this branch, box script on the box):
Last Update,Last AttemptandStatus: updatable. The seed log also shows the refresh lines.Verifications
Notes
tools/*is not dash-node, so there is no version bump. A box that is already deployed gets this script with the next dash-node update.git fetch --depth 20per repo, right after the clone).