pub fn ensure_changelog(repo_path: &Path, version: &str) -> Result<(), String>
如果 CHANGELOG.md 不包含当前版本,则自动生成并写入。