Skip to content
wp2next, home
Skip to the page

Maintainers: the migration counter

For maintainers of the wp2next , 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 migrate 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.

What arrives

Today: a 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:

JSON
{
  "schema": 1,
  "reportId": "00000000-0000-4000-8000-000000000000",
  "listing": "anonymous",
  "wp2nextVersion": "2.0.0",
  "mode": "pixel",
  "sourceType": "gutenberg",
  "pageCountBucket": "11-50",
  "agent": "claude-code",
  "month": "2026-12"
}

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.

One-time setup: the label

The form applies the label; gh issue create from report.py asks for it too, and retries without it if it doesn't exist. Create it once:

Terminal
gh label create migration-completed --repo MTRCio/wp2next --color 0E8A16 \
  --description "Completed migration reported with wp2next report"
gh label create showcase --repo MTRCio/wp2next --color 5319E7 \
  --description "Approved for the website showcase"

How the website counts

Pick one rule and say on the website which one it uses.

  • Simple (every report counts): GitHub's search API, total_count of repo:MTRCio/wp2next is:issue label:migration-completed.
    Terminal
    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, ) 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).

Verifying a report

For each new migration-completed issue:

  1. Shape: the json block parses, reportId is a UUID, every value is one of the template's options, month is not in the future.
  2. 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.
  3. Client data: an anonymous report must not name the site. If it does (a , 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.
  4. 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".

Showcase review

Showcase reports name a real site. Before listing one:

  • Open the domain: it loads, it is the site the name says, and nothing on it is inappropriate to show on the wp2next website.
  • The form's "client gave permission" box is ticked. When in doubt, ask in the issue: "Can you confirm the site owner agreed to this listing?" and wait.
  • Add the showcase label, close the issue as completed. The website lists only issues with both migration-completed and showcase.
  • Show only displayName, domain, mode, sourceType and month. Never the poster's account unless they ask for credit.

Removing an entry on request

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 ), 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.

What never goes in

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.