From 170ce48cc898b71f7bb5e8e2bd694dde39fddbe0 Mon Sep 17 00:00:00 2001 From: sudoforge <no-reply@sudoforge.com> Date: Mon, 19 May 2025 10:07:38 -0700 Subject: [PATCH] refactor(changelog): remove extraneous commit preprocessors (#1461) This change removes several commit preprocessors that were originally used to touch up commit subjects on initial import, and are no longer needed. Change-Id: Ic23cef9cf6aef657c985937f5354b2b2db100fa7 --- cliff.toml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/cliff.toml b/cliff.toml index 9d8d3885..f8761156 100644 --- a/cliff.toml +++ b/cliff.toml @@ -102,37 +102,11 @@ sort_commits = "oldest" topo_order = true commit_preprocessors = [ - # map various older scopes to new scopes - # TODO: remove after init (because we will enforce an append-only workflow) - { pattern = '^([^\(]+)\(commands\):', replace = '$1 (cli):' }, - { pattern = '^[^\(]+\(ci\)', replace = 'ci:' }, - { pattern = '^[^\(]+\(TestCache\)', replace = 'test:' }, - { pattern = '^doc: (.+ \(#1395\))', replace = 'docs(dev-infra): $1' }, - { pattern = '^fix: (.+ \(#1403\))', replace = 'fix(completion): $1' }, - { pattern = '^docs: (correct mispelled words)', replace = 'fix(dev-infra): $1' }, - { pattern = '^(.+) \[fix\]$', replace = 'docs: $1' }, - { pattern = '^fix ', replace = 'fix: ' }, - - # remove errata from old commit messages - # TODO: remove after init (because we will enforce an append-only workflow) - { pattern = '^([^\(]+)\((?:#?\d+|opencollective|git-bug-863)\)', replace = '$1' }, - { pattern = ', fix https://.+/issues/653', replace = '' }, - # remove quotes from reversions # we do this to clean up the changelog output, since the raw message would # otherwise be surrounded in quotes { pattern = '^[Rr]evert: "(.+)"', replace = 'revert: $1' }, - # convert quotes in subjects to graves - # TODO: remove after init (because we will enforce an append-only workflow) - { pattern = '"', replace = '`' }, - - # escape backslashes - # we do this because mdformat will remove isolated backslashes, and there is a - # historical commit that contains one - # TODO: remove after init (because we will enforce an append-only workflow) - { pattern = '\\', replace = '\\' }, - # remove PR references from commit messages, to remove a hard dependency on # github. by default, we show the commit hash (although github usernames and # PR references are added in dynamically during release, for the changes -- GitLab