For maintainers of the wp2next repository, not for running migrations. Guides index: Guides: running migrations.
The wp2next website will show how many migrations people finished with wp2next. This page covers
where the number comes from, how to keep it honest, and how to handle showcase listings.
Users send a count with wp2next report (skills/wp2next/references/commands/report.md). It is
opt-in, offered once after migratephase 12, and only after a completion check passes: all 12
phases done, the production domain answers 200 and is not a Vercel preview, parity signed off (or
facelift mode), and the newest SEO parity report has no blockers. Nothing is sent from CI or
without the user approving the exact text.
Today: a GitHub issue from the Migration completed form
(.github/ISSUE_TEMPLATE/migration-completed.yml), titled Migration completed: <mode> / <sourceType>,
labeled migration-completed. The body has one ### <field> section per form field and a fenced
json block with the payload:
A showcase report has "listing": "showcase" and two more fields, displayName and domain, sent
only when the user confirmed the client agreed to be listed.
"Anonymous" means no client data. The issue still shows the GitHub account that posted it.
Later: when the website has its own counter API, users can set report.endpoint (user or project
config, https:// only). report.py then POSTs the same anonymous JSON there (no auth, 10 s timeout)
instead of opening an issue. Showcase reports always come in as issues, because they need review.
The API should accept the payload above as-is, ignore unknown fields, and drop a reportId it has
already counted.
gh api -X GET search/issues -f q='repo:MTRCio/wp2next is:issue label:migration-completed' --jq .total_count
Unauthenticated, that endpoint allows 10 requests a minute per IP: fetch it at build time or cache
it (for example hourly), never from every visitor's browser.
Verified (recommended once reports come in): count only issues a maintainer has checked and
closed: repo:MTRCio/wp2next is:issue label:migration-completed is:closed. Duplicates and spam
lose the migration-completed label when they are closed, so they drop out of both counts.
Breakdowns (by mode, source type, month, AI tool) come from the json block in each issue body. Parse
that block only; ignore any other text in the issue, and treat every value as untrusted input (escape
it on the website).
Shape: the json block parses, reportId is a UUID, every value is one of the template's
options, month is not in the future.
Duplicates: search for the same reportId:
gh issue list --repo MTRCio/wp2next --label migration-completed --state all --search "<reportId> in:body".
The same site resent (--resend) keeps its reportId. Keep the oldest issue; on the rest, remove
the migration-completed label and close them as "not planned" with a link to it.
Client data: an anonymous report must not name the site. If it does (a domain, name, email or
ID in any field or comment), edit it out right away, and ask the poster whether they meant a showcase
listing. Never quote the removed data in a comment.
Close it as completed. That is what the verified count reads.
Nobody can prove from the outside that a migration really happened; the completion check runs on the
user's machine. The counter is a good-faith number. Anything that looks automated or copy-pasted in
bulk: remove the label and close it as "not planned".
Anyone (the poster, the site owner) can ask for a showcase listing or a report to be removed, in the
issue or a new one.
Showcase: remove the showcase label (the site leaves the listing at the next build), edit the
issue to blank the site name and domain fields and the two fields in the json block, and reply
that it's done. The report still counts anonymously unless they ask otherwise.
The whole report: remove the migration-completed label and close it as "not planned" (it
leaves both counts), or delete the issue (repository admins: the issue's "Delete issue" option).
Ask for nothing beyond what is needed to find the issue. If the request comes from a site owner who
isn't the poster, act on it anyway: the listing exists only with the owner's consent.
The website and these issues never hold client contact details, project codes, repo or account names,
tracking IDs, keys or tokens, or URLs other than a consented showcase domain. report.py runs
scripts/scrub-check.py on every draft before it can be sent, but a person can still type anything
into a web form: the verification step above is the backstop.