newbish / changelog

:blue_book: semantic-release plugin to create or update a changelog file
MIT License
1 stars 0 forks source link

Are branches really ignored? #4

Open ciltocruz opened 3 months ago

ciltocruz commented 3 months ago

Hello. I use this tool because the original (@semantic-release/changelog) generates the notes in the changelog.md file whenever a release is generated.

I only want to write the changelog.md file when pushing to the main branch.

That's why I use this plugin with the notation "'branches': ['main']"

The problem is that when I run my pipeline with gitlab ci/cd, the pushes in the develop branch are writing to changelog.md

I'm sure I'm not doing something right but I've analyzed the code and I haven't found code that makes me think there is branch exclusion. It's probably my mistake again and I don't know how to look for it properly.

Greetings and thank you.

ciltocruz commented 3 months ago

I think the "good" code is in master, but there is a main branch from which the latest versions have been generated without code for ignore branches.

I think I'm not understanding something...