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.
| Key | Type | What it is |
|---|---|---|
blocker | array 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.
| Key | Type | What it is |
|---|---|---|
id | string, required | Unique name, of ASCII letters, digits, _ and -: a canibump:<id> comment in a scanned file marks where its workaround sits. |
note | string, required | What workaround it guards. |
sites | array of sites | Where the workaround sits in files that take no comment, like JSON. |
Waits on an issue, PR or MR.
| Key | Type | What it is |
|---|---|---|
state | string, required | The 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.
| Key | Type | What it is |
|---|---|---|
in | in, required | Where it has to arrive. |
reached | string, required | The commit or PR: github:owner/repo#N, github:owner/repo@<sha> or git:<remote url>@<sha>. |
Waits for a package version.
| Key | Type | What it is |
|---|---|---|
at-least | at-least, required | The lowest version that resolves the blocker. |
repo | string | The Repology repo to read, e.g. nix_unstable. |
srcname | string | The package name in that repo, when it ships several. |
version | string, required | The 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.
| Key | Type | What it is |
|---|---|---|
all | array of [[blocker.all]] and [[blocker.any]], required | The steps, checked in order. |
Some step holds, checked in order.
| Key | Type | What it is |
|---|---|---|
any | array of [[blocker.all]] and [[blocker.any]], required | The steps, checked in order. |
[[blocker.all]] and [[blocker.any]]
One step of an all or any: an optional id and exactly one condition.
| Key | Type | What it is |
|---|---|---|
id | string | A 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.
| Key | Type | What it is |
|---|---|---|
branch | string | A branch name. |
since | string | With tags, ignore tags below this version. |
tag | string | An exact tag name. |
tags | string | A 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.
| Key | Type | What it is |
|---|---|---|
step | string, required | The id of that step. |
sites
Where the workaround sits in a file that takes no comment, so no canibump:<id> marker can.
| Key | Type | What it is |
|---|---|---|
file | string, required | The file, relative to the manifest, like "package.json". |
pattern | string, required | A 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.
| Key | Type | What it is |
|---|---|---|
catcher | array of [[scan.catcher]] | Catchers to add, replace or turn off. The built-ins, github, gitlab-issue, gitlab-mr and codeberg, are on by default. |
exclude | array of string | Globs of files to skip among those. |
paths | array of string, required | Globs 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.
| Key | Type | What it is |
|---|---|---|
enabled | boolean | false turns it off. Defaults to true. |
id | string, required | Its name. A built-in's id replaces or turns off that built-in. |
pattern | string | A regex with named groups, like 'https://jira\.example\.com/browse/(?<key>[A-Z]+-\d+)'. |
ref | string | The ref a match stands for, with ${group} for each named group, like "jira:jira.example.com#${key}". |
[settings]
Tuning for the whole run.
| Key | Type | What it is |
|---|---|---|
cache | string | Where the cache file lives, relative to the manifest. Defaults to a file under the user cache dir. |
fail-on | array of fail-on | What 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-on | array of status | Which 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. |
ttl | string | How 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.
| Value | What 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.
| Value | What 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. |