Skip to content
Snippets Groups Projects
Unverified Commit 170ce48c authored by sudoforge's avatar sudoforge Committed by GitHub
Browse files

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
parent 26086bb6
No related branches found
No related tags found
No related merge requests found
...@@ -102,37 +102,11 @@ sort_commits = "oldest" ...@@ -102,37 +102,11 @@ sort_commits = "oldest"
topo_order = true topo_order = true
commit_preprocessors = [ 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 # remove quotes from reversions
# we do this to clean up the changelog output, since the raw message would # we do this to clean up the changelog output, since the raw message would
# otherwise be surrounded in quotes # otherwise be surrounded in quotes
{ pattern = '^[Rr]evert: "(.+)"', replace = 'revert: $1' }, { 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 # remove PR references from commit messages, to remove a hard dependency on
# github. by default, we show the commit hash (although github usernames and # github. by default, we show the commit hash (although github usernames and
# PR references are added in dynamically during release, for the changes # PR references are added in dynamically during release, for the changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment