How can a CHANGELOG.md be created automatically using Hugo and GitLab?

I would like to automatically create a CHANGELOG.md of all GitLab entries for my project. GitLab itself has this link: https://gitlab.com/gitlab-com/content-sites/handbook/-/tree/main. From there it refers to this page https://git-scm.com/docs/git-interpret-trailers. Unfortunately I could not find an example which uses Hugo. How do I create an automatic changelog within Hugo and GitLab?

This is a Git issue if you are generating CHANGELOG for git commits. You should refer GitLab docs for this.