Sign inSign up free

814. Generate Release Notes From Commits

medium 20 XP ~12 minHands-on lab

The release notes of auth-gateway are a raw dump of git log: chores, docs fixes and all. The release job calls scripts/changelog.sh VERSION in /home/student/repos/auth-gateway and pastes what it prints.

Task

Make scripts/changelog.sh VERSION print the notes for the commits since the last tag that looks like v<digits>… (all commits if there is none), in this exact format:

## v2.4.0 (2026-11-06)

### Features

- **api:** add pagination (1a2b3c4)
- dark mode (5d6e7f8)

### Bug Fixes

- crash on empty input (9a8b7c6)
  • The date is today in UTC (YYYY-MM-DD).
  • feat commits go under Features, fix commits under Bug Fixes; every other type is left out. feat!:/fix(x)!: count as their type.
  • A scope is shown as **scope:** before the description; the hash is the 7-character short hash.
  • Commits are listed oldest first. A section with no entries is left out entirely.
  • If there are neither features nor fixes, print the heading, an empty line and No notable changes.

Descriptions can contain any characters, * included.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of CI/CD Pipelines in Practice. Next step: Summarise JUnit Reports in the Job Log

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.