fix(wiki): render wiki page metadata instead of a bare identifier #14
No reviewers
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea!14
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/4-wiki-get-metadata"
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?
What
gitea_wiki {action:"get"}could only ever answer with an identifier (historically the bareOKfrom #5; nowtitle: Homeplus a JSON snippet). The page body is genuinely unavailable — Forgejo'sGET /wiki/page/{name}returns metadata only — but the tool gave no title/URL/last-commit context and no hint about where content lives.This PR:
gitea_wikiformatter: title, slug (sub_url),html_url, last-commit short SHA + subject, and a plain statement that the REST API is metadata-only and the body comes from<owner>/<repo>.wiki.git;sub_urlandlast_committhroughslimRecord(they were stripped inlib/handlers/common.js, so the formatter could never see them);The
#5generic unknown-object fixture moved offgitea_wikitogitea_unknown_tool, sincegitea_wikinow has an explicit formatter.Verification
slimRecordretains the keys, and the result is never a bareOK.npm test51/51, leak scan clean,node --checkclean.vps-setup/Home→Wiki page: Home,Slug: Home,URL: …,Last commit: 4bc73399 docs: add DSH bootcamp page for agents, content note.Acceptance (from #4)
getreturns at least title + URL (neverOK).Closes #4.