Documentation
¶
Overview ¶
pullresidue finds the large files GitHub still serves only through pull request refs, writes the Support request that can remove them, and tells when they are gone.
pullresidue scan [--min 1MiB] <git-dir> pullresidue letter --repo owner/name [--min 1MiB] [--open] [--token-file F] <git-dir> pullresidue check --repo owner/name [--token-file F] <blob-id>...
A build output committed by mistake and removed by the next commit leaves a main that a squash merge kept clean, and a blob that refs/pull/N/head still reaches. The owner cannot delete refs/pull/*; only GitHub Support can collect the blob, and Support has no API: its form is the only way in. go-quake1/ engine#79 left a 14 MB binary that way on 2026-11-08.
scan reads a --mirror clone (which fetches refs/pull/*) and lists every blob of at least --min that some pull ref reaches and no branch or tag does, with its path, the pull requests, and the commit that added it. A clone without pull refs, or one where nothing was read, is a question that could not be put (exit 2), never "nothing found".
letter adds what GitHub says about each blob, with a HEAD request on the blobs API, so a 14 MB blob is not downloaded to learn it exists, and prints the request for the blobs still served. --open opens the form; sending it is the account owner's act.
check answers, per blob, served or gone: run it after Support replies.
The token is read from --token-file (default ~/.github-token), which must be readable by its owner alone, and goes in the Authorization header only.
Exit status: 0 nothing to do (no residue, or every blob gone), 1 residue found or still served, 2 the question could not be put.