Manifest reference

Every key canibump.toml takes.

This page is canibump schema rendered, so it lists what your binary accepts. Point your editor at the same schema for completion as you type.

canibump.toml

A canibump.toml: settings, and the blockers a repo waits on.

KeyTypeWhat it is
blockerarray of [[blocker]]One [[blocker]] per workaround waiting on something upstream.
scan[scan]Reads the repo's files for upstream links no blocker lists.
settings[settings]Tuning for the whole run.

[[blocker]]

One workaround waiting on something upstream: an id, a note and exactly one condition.

KeyTypeWhat it is
idstring, requiredUnique name, of ASCII letters, digits, _ and -: a canibump:<id> comment in a scanned file marks where its workaround sits.
notestring, requiredWhat workaround it guards.
sitesarray of sitesWhere the workaround sits in files that take no comment, like JSON.

Waits on an issue, PR or MR.

KeyTypeWhat it is
statestring, requiredThe item: github:owner/repo#N, gitlab:group/project!N, codeberg:owner/repo#N, gitea:host/owner/repo#N, forgejo:host/owner/repo#N, redmine:host#N or jira:host#KEY-N.

Waits for a commit to land in a branch or tag.

KeyTypeWhat it is
inin, requiredWhere it has to arrive.
reachedstring, requiredThe commit or PR: github:owner/repo#N, github:owner/repo@<sha> or git:<remote url>@<sha>.

Waits for a package version.

KeyTypeWhat it is
at-leastat-least, requiredThe lowest version that resolves the blocker.
repostringThe Repology repo to read, e.g. nix_unstable.
srcnamestringThe package name in that repo, when it ships several.
versionstring, requiredThe package: repology:<project> or deps.dev:<system>/<name>, where the system is cargo, npm, pypi, go, maven, nuget or rubygems.

Every step holds, checked in order.

KeyTypeWhat it is
allarray of [[blocker.all]] and [[blocker.any]], requiredThe steps, checked in order.

Some step holds, checked in order.

KeyTypeWhat it is
anyarray of [[blocker.all]] and [[blocker.any]], requiredThe steps, checked in order.

[[blocker.all]] and [[blocker.any]]

One step of an all or any: an optional id and exactly one condition.

KeyTypeWhat it is
idstringA name later steps refer to, e.g. at-least = { step = "released" }.

Plus exactly one condition, with the same keys as in [[blocker]].

in

Where a reached commit has to arrive: exactly one of branch, tag or tags.

KeyTypeWhat it is
branchstringA branch name.
sincestringWith tags, ignore tags below this version.
tagstringAn exact tag name.
tagsstringA glob such as v*; the first matching tag, in version order, counts.

at-least

The lowest version that resolves a version condition.

string: A literal version.

The tag an earlier reached step with in = { tags = ... } found.

KeyTypeWhat it is
stepstring, requiredThe id of that step.

sites

Where the workaround sits in a file that takes no comment, so no canibump:<id> marker can.

KeyTypeWhat it is
filestring, requiredThe file, relative to the manifest, like "package.json".
patternstring, requiredA regex run over each line; each line it matches is a site, like '"left-pad": "=1\.3\.0"'. Matching none prints unmarked.

[scan]

Reads the repo's files for canibump:<id> markers, each a site of blocker <id>, and for upstream links. A link or marker no blocker names prints as an unlisted line; a line holding canibump-ignore is skipped, and so is the manifest.

KeyTypeWhat it is
catcherarray of [[scan.catcher]]Catchers to add, replace or turn off. The built-ins, github, gitlab-issue, gitlab-mr and codeberg, are on by default.
excludearray of stringGlobs of files to skip among those.
pathsarray of string, requiredGlobs of the files to read, relative to the manifest, like "**/*.nix". * stops at /, ** crosses directories.

[[scan.catcher]]

A catcher: a regex over each line, and the ref its match stands for.

KeyTypeWhat it is
enabledbooleanfalse turns it off. Defaults to true.
idstring, requiredIts name. A built-in's id replaces or turns off that built-in.
patternstringA regex with named groups, like 'https://jira\.example\.com/browse/(?<key>[A-Z]+-\d+)'.
refstringThe ref a match stands for, with ${group} for each named group, like "jira:jira.example.com#${key}".

[settings]

Tuning for the whole run.

KeyTypeWhat it is
cachestringWhere the cache file lives, relative to the manifest. Defaults to a file under the user cache dir.
fail-onarray of fail-onWhat fails the run, with an exit code from 9 to 63: any of "bumpable", "dead", "failed", "unlisted" and "unmarked". Defaults to all five; [] never fails. --fail-on overrides it.
sites-onarray of statusWhich lines print the sites of their workaround under them: any of "waiting", "bumpable", "dead" and "failed". A check defaults to bumpable and dead, canibump status to all four. --sites-on overrides it.
ttlstringHow long a result stays fresh before canibump re-checks it, like "6h", "30m" or "1d". Takes weeks, days, hours, minutes and seconds, a day being 24 hours. Defaults to 6 hours.

status

The state of a blocker, or of one step of it.

ValueWhat it means
"waiting"Upstream has not landed it yet.
"bumpable"Landed: the workaround can go.
"dead"Will not land as declared (closed unmerged, wontfix, duplicate).
"failed"The check itself failed (network, auth, rate limit).

fail-on

What can fail the run: every status but waiting, an unlisted link or marker, and an unmarked blocker.

ValueWhat it means
"bumpable"Something landed: adds 1 to the exit code.
"dead"An upstream fix will not land as declared: adds 2.
"failed"A check broke: adds 4.
"unlisted"[scan] found a link or marker no blocker names: adds 16.
"unmarked"[scan] found no canibump:<id> for a blocker: adds 32.