pub fn append_changelog( chat_root: &Path, txn_id: &str, files: &[String], changes: &[(String, String)], reason: &str, ) -> Result<()>