Add changelog generation
Remove duplicate function