// UpdateAllChangelogs generates changelog entries for both the top level CHANGELOG.md and per-module CHANGELOG.md files.
UpdateAllChangelogs generates changelog entries for both the top level CHANGELOG.md and per-module CHANGELOG.md files.
// UpdateAllChangelogs generates changelog entries for both the top level CHANGELOG . md and per - module CHANGELOG . md files .
func (r *Repository) UpdateAllChangelogs(release *Release, pending bool) error {
	err := r.UpdateChangelog(release, pending)
	if err != nil {
		return err
	}
	for _, m := range release.AffectedModules() {
		if m == rootModule {
			continue
		}
		err = r.UpdateModuleChangelog(release, m, pending)
		if err != nil {
			return err
		}
	}
	return nil
}
func ( r * Repository ) UpdateAllChangelogs ( release * Release , pending bool ) error { err := r . UpdateChangelog ( release , pending ) if err != nil { return err } for _ , m := range release . AffectedModules ( ) { if m == rootModule { continue } err = r . UpdateModuleChangelog ( release , m , pending ) if err != nil { return err } } return nil }
UpdateAllChangelogs generates changelog entries for both the top level CHANGELOG.md and per-module CHANGELOG.md files.
UpdateAllChangelogs generates changelog entries for both the top level CHANGELOG . md and per - module CHANGELOG . md files .
// skip updating the root module, since this would overwrite the top level consolidated CHANGELOG