Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.
Link wiki issues to the GitHub PRs that fix them (and close on merge)
Problem
Wiki issues and the code that fixes them live in two different systems, with nothing joining them.
Wiki feature requests belong here on adom/wiki (371+ issues; the codebase itself cites adom/wiki#73, adom/wiki#62, adom/wiki #52). But the code for the wiki server is a GitHub repo, adom-inc/git-wiki, so the fix arrives as a GitHub PR. GitHub's Closes #N cannot reach across — it only resolves issues inside its own repo.
The result today: the link is prose on both sides and a human's memory in the middle. Concretely, right now:
- adom/wiki#88 ("Files tab has no way to download the whole repo") names its PR in the body.
- adom-inc/git-wiki#271 names
adom/wiki#88in its body. - When #271 merges, nothing closes #88. Someone has to remember.
That is not a one-off. It is the shape of every wiki issue that gets fixed in code, so the drift is structural: the tracker slowly fills with issues that were actually fixed months ago.
What the wiki knows about GitHub today: nothing
Worth stating plainly, because it sets the size of the job. The only occurrence of the string github in the whole server is a syntax-highlighting stylesheet filename (static/vendor/highlight/github-dark.min.css). There is no GitHub client, no token handling, no webhook receiver. This would be the first GitHub awareness in the codebase.
Proposal — three tiers, each useful alone
Tier 1 — a structured linked-PR field (no GitHub credentials needed).
Give a discussion an optional external reference (URL + label), instead of burying it in prose. Render it as a real link in the issue header, and make it filterable ("show me issues with a linked PR"). Even with zero GitHub API access this converts an invisible convention into queryable data, and it is the foundation the other tiers need. adom-wiki issue create/triage --linked-pr <url>.
Tier 2 — resolve and display PR state.
Fetch the PR's state and show a badge on the issue: OPEN / MERGED / CLOSED. A reader then sees "fix is up but not merged" without leaving the page.
Tier 3 — close the issue when the linked PR merges.
Either poll the linked PRs on a schedule, or accept a GitHub webhook. On merge: post a comment naming the PR and set status=closed, exactly as adom-wiki issue close --comment already does. This is the part that actually removes the manual step.
The credential question (tiers 2-3)
adom-inc/git-wiki is a private repo, so reading PR state needs a GitHub token on the wiki container. A token for reaching adom-inc private repos has already come up separately (private-repo page sync), so this should share that credential rather than introduce a second one — worth settling the ownership of that token before building tier 2, since it is the real blocker rather than the code.
Tier 1 has no such dependency and could land on its own.
Alternative considered
A GitHub Action in adom-inc/git-wiki that greps the merged PR body for adom/wiki#NN and calls the wiki API to close it. It works today and needs no wiki changes, but it puts a wiki API token into GitHub repo secrets, and it would be that repo's first-ever workflow. It also only fixes the one repo — anything else that ever fixes a wiki issue would need its own copy. Preferring the wiki-side version because the wiki is ours and the fix then applies to every linked PR from anywhere.
Filed by Ray. Immediate motivation: adom/wiki#88 <-> git-wiki#271.