Skip to content

base-unavailable

Rung history · correctness · default error

The –base ref cannot be read, so the history rules cannot run. Lint fails instead of skipping them.

History rules compare the branch with a base ref, and a comparison against nothing proves nothing. If the base cannot be read, Gantry fails rather than skipping the rules, because a skipped check looks identical to a passed one. In CI the usual cause is a shallow clone that does not have the base commit.

Check the ref name. In GitHub Actions, check out with fetch-depth: 0 so the base is present.

- uses: actions/checkout@v4
with:
fetch-depth: 0