How to update the changelog
Call the Build
method from the IChangelogBuilder
interface to update your changelog:
var changelogBuilder = serviceProvider.GetRequiredService<IChangelogBuilder>();
changelogBuilder.Build(nextVersion, commitMsgs, changelogPath);
Example at cangulo.nuke.releasecreator
IChangelogBuilder Definition
public interface IChangelogBuilder
{
void Build(string version, string[] changes, string path);
}
Definition at cangulo.changelog