The check_readme_release_sync.sh script flags every PR that touches
pyproject.toml as a "release" change requiring a README.md update.
pyproject.toml is edited for many non-release reasons (Dependabot
dependency bumps, tool config, adding deps), so the gate fires on
Dependabot PRs and unrelated changes — previously worked around by
adding a no-op README edit.
Detect a real release by checking whether the `version = "..."` line
actually changed in the pyproject.toml diff. CHANGELOG.md still always
counts as a release-touched file.
Use full-depth checkout for CI and add a two-dot diff fallback when three-dot diff resolution fails in shallow or unusual merge-base contexts.
Made-with: Cursor
Add a CI guard that requires README.md updates whenever pyproject.toml or CHANGELOG.md changes in a pull request, and document the requirement in the contributor release checklist.
Made-with: Cursor