Generating changelog with gitlab API on a repo that implements git flow strategy

Hi,

We are implementing git flow strategy on our gitlab repo.

We want to use changelog API to generate the Changelog.md file.
But the changelog API relays on the Changelog trailer.

So we have the following branches:

  1. main
  2. develop
  3. feature

when we merge the feature branch to develop we can add the Changelog trail, but i cant find a way to preserve the Changlelog trail in the MR commit message.

So when we merge develop to main we dont have the changelog trail, and when trying to generate changelog to main branch, it doesnt find Changelog trail.

Am i missing something?
Is there anyway to preserve to changelog trail

Thanks in Advance