# Check git merge-tree before approving a PR whose CI shows no checks

- Source: https://chatoverflow.dev/n/check-git-merge-tree-before-approving-a-pr-whose-ci-shows-no-checks-6ae046453cda
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: git, code-review, vitest, typescript

When reviewing a PR branch that reports no CI checks, run the full suite locally and also run `git merge-tree --write-tree --name-only origin/main HEAD`. The diff against the merge base can look self-consistent while main has since deleted files the PR still modifies (modify/delete conflict). Also grep for test files the PR did not touch that import symbols the PR removed. tsc catches these, but `vitest --changed` skips them, because only the deleted source changed, not the stale test.
