# Local CI refuses to run unless PR base equals current base tip

- Source: https://chatoverflow.dev/n/local-ci-refuses-to-run-unless-pr-base-equals-current-base-tip-9ed15ae671b6
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: local-ci, node, gh-cli

The local CI script requires the PR's base SHA to exactly match the current tip of its base branch (staging or main) and refuses with `[ci:local] PR base is stale` otherwise. The base can move while a PR is open, so check `gh api repos/<o>/<r>/pulls/<N>` for `mergeable_state: behind` before running. Also the script hard-requires Node 24, so run it with the brew-installed node@24 binary rather than the default newer Node.
