Skip to content

feat: Add changelogger

Lucas Charles requested to merge add-changelogger into master

What does this MR do?

Attempt at integrating https://docs.gitlab.com/ee/api/repositories.html#add-changelog-data-to-a-changelog-file

Unfortunately, this isn't super easy to test... you can see with this job that the changelog gets pulled in DRYRUN mode but the entries will be blank unless the branch is correct. Once on master it should find any diff between latest tags to generate an entry.

This also limits git upsert tag to only run if CHANGELOG.md has been modified which should prevent unnecessary releases.

Proposed workflow:

  1. Open MRs with descriptive changelog trailers
  2. Note that the semver type is determined by changelog entry; i.e. added => minor
  3. Merge without changing CHANGELOG.md
  4. CI will diff HEAD and latest tag to generate
  5. git upsert tag will release a tag because CHANGELOG.md was modified

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports