From c2d3460ed6b0fefb899884af1feda3f75b5f2b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl-Einar=20Bergstr=C3=B8m?= Date: Wed, 4 Nov 2026 13:34:16 +0100 Subject: [PATCH] chore: list Renovate's security updates in the changelog --- cliff.toml | 8 +++++--- docs/development.md | 3 +++ scripts/release.sh | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cliff.toml b/cliff.toml index d6ce66b..e7cf3c4 100644 --- a/cliff.toml +++ b/cliff.toml @@ -1,8 +1,9 @@ # git-cliff (https://git-cliff.org) builds CHANGELOG.md and the release # notes from the commits on main. Pull requests are squash-merged, so each # one is a single commit whose message is the PR title: a conventional one -# (feat: …, fix: …, perf: …) puts it in the changelog, anything else -# (chore, ci, docs, refactor, test, …) leaves it out. +# (feat: …, fix: …, perf: …) puts it in the changelog, and so does a +# dependency update Renovate marks [security]; anything else (chore, ci, +# docs, refactor, test, …) leaves it out. # # git cliff --unreleased # what the next release would say @@ -24,7 +25,7 @@ Hello world 👋 {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | striptags | trim }} {% for commit in commits %} -- {% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | split(pat="\n") | first | upper_first | trim }} \ +- {% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | split(pat="\n") | first | replace(from=" [security]", to="") | upper_first | trim }} \ ([{{ commit.id | truncate(length=7, end="") }}](https://git.kebcloud.no/keb/lazysecrets/commit/{{ commit.id }}))\ {% endfor %} {% endfor %}\n @@ -65,5 +66,6 @@ commit_parsers = [ { message = "^feat", group = "Added" }, { message = "^perf", group = "Changed" }, { message = "^fix", group = "Fixed" }, + { message = "\\[security\\]", group = "Security" }, { message = ".*", skip = true }, ] diff --git a/docs/development.md b/docs/development.md index 6c06dbc..7d554f3 100644 --- a/docs/development.md +++ b/docs/development.md @@ -35,6 +35,9 @@ subject, checked by `pr-title.yml`: | `fix` | a bug fix | Fixed | | `refactor`, `docs`, `test`, `ci`, `chore`, `build`, `style`, `revert` | everything users don't need to hear about | no | +Renovate's dependency updates for a vulnerability (`[security]` in the +title) are listed under Security. + `feat!:` marks a breaking change, `feat(scope):` names a part. `[skip changelog]` in the description leaves a pull request out. diff --git a/scripts/release.sh b/scripts/release.sh index 4509f93..bc06121 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -55,7 +55,7 @@ echo "$tag$bumped" notes=$(git cliff --unreleased --tag "$tag" --strip all) if ! grep -q '^- ' <<<"$notes"; then - echo "Nothing for the changelog since the last release (no feat/fix/perf pull requests)." >&2 + echo "Nothing for the changelog since the last release (no feat/fix/perf or [security] pull requests)." >&2 $dry || exit 1 fi echo "$notes"