You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to enforce that every PR must add a new entry under the unreleased section of the changelog, then should I specify expectedLatestVersion: 'unreleased'? Why would i ever add an entry under a fixed version? 🤔
The text was updated successfully, but these errors were encountered:
Thanks for the question. The use case of this option is mostly that someone doesn't accidentally get versions out of order. It is more of a sanity check more than strong validation.
This action doesn't enforce that you only update a specific version, sadly (though that might be a good feature to add!). The intention is more of a reminder to teams to pay attention to their changelog and to keep it up-to-date.
In your use case, leaving the option empty will allow the Unreleased section to be the first version listed. The use case of Unreleased itself allows for "building" a release over a set of changes rather than stating ahead of time which version it will be. Different flows have different patterns, but this allows for teams to choose which ones they want.
Hi, I don't understand the docs in https://github.com/dangoslen/changelog-enforcer?tab=readme-ov-file#expectedlatestversion. It's not clear to me what this field does, or what the default behavior is.
If I want to enforce that every PR must add a new entry under the
unreleased
section of the changelog, then should I specifyexpectedLatestVersion: 'unreleased'
? Why would i ever add an entry under a fixed version? 🤔The text was updated successfully, but these errors were encountered: