// UpdateModuleChangelog generates a changelog entry for the specified module, updating the module's CHANGELOG.md file.
UpdateModuleChangelog generates a changelog entry for the specified module, updating the module's CHANGELOG.md file.
// UpdateModuleChangelog generates a changelog entry for the specified module updating the module ' s CHANGELOG . md file .
func (r *Repository) UpdateModuleChangelog(release *Release, module string, pending bool) error {
	entry, err := release.RenderChangelogForModule(module, false)
	if err != nil {
		return err
	}
	return util.WriteFile([]byte(entry), filepath.Join(r.RootPath, module, "CHANGELOG.md"), !pending)
}
func ( r * Repository ) UpdateModuleChangelog ( release * Release , module string , pending bool ) error { entry , err := release . RenderChangelogForModule ( module , false ) if err != nil { return err } return util . WriteFile ( [ ] byte ( entry ) , filepath . Join ( r . RootPath , module , " " ) , ! pending ) }
UpdateModuleChangelog generates a changelog entry for the specified module, updating the module's CHANGELOG.md file.
UpdateModuleChangelog generates a changelog entry for the specified module updating the module ' s CHANGELOG . md file .