Skip to main content

ensure_changelog

Function ensure_changelog 

Source
pub fn ensure_changelog(
    repo_path: &Path,
    scope_dir: &Path,
    version: &str,
) -> Result<(), String>
Expand description

如果 CHANGELOG.md 不包含当前版本,则自动生成并写入。 repo_path 用于 git 操作,scope_dir 用于文件操作。