pullresidue

command
v0.178.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL