Release Management and Cadence
Tutorial: Automate releases and release notes with GitLab

Tutorial: Automate releases and release notes with GitLab

11/1/2023 · Ben Ridley

What this post added

This post introduces the automation of release notes and changelogs using GitLab's Changelog API and commit trailers. It details how to configure a CI/CD pipeline with a `release` job and a `prepare_job` that calls the Changelog API to generate release notes based on commit trailers. The post also explains the use of semantic versioning for tags and the `release-cli` for creating releases with assets. It demonstrates how to add 'Changelog: added' and 'Changelog: removed' trailers to commit messages and how these are parsed to generate structured release notes and changelogs.

Read the original post ↗