Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

chore: remove spaces at beginning of commit messages when generating changelogs (#1906)

Sanchith Hegde7d13226740db
diff --git a/.github/git-cliff-changelog.toml b/.github/git-cliff-changelog.toml
index 7b9c1780b1..1d7e4080cc 100644
--- a/.github/git-cliff-changelog.toml
+++ b/.github/git-cliff-changelog.toml
@@ -52,6 +52,7 @@ filter_unconventional = false
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
+ { pattern = "^ +", replace = "" }, # remove spaces at the beginning of the message
{ pattern = " +", replace = " " }, # replace multiple spaces with a single space
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/juspay/hyperswitch/pull/${1}))" }, # replace PR numbers with links
{ pattern = "(\\n?Co-authored-by: .+ <.+@.+>\\n?)+", replace = "" }, # remove co-author information
diff --git a/.github/git-cliff-release.toml b/.github/git-cliff-release.toml
index 027eaea974..1b82c812b5 100644
--- a/.github/git-cliff-release.toml
+++ b/.github/git-cliff-release.toml
@@ -49,6 +49,7 @@ filter_unconventional = false
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
+ { pattern = "^ +", replace = "" }, # remove spaces at the beginning of the message
{ pattern = " +", replace = " " }, # replace multiple spaces with a single space
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/juspay/hyperswitch/pull/${1}))" }, # replace PR numbers with links
{ pattern = "(\\n?Co-authored-by: .+ <.+@.+>\\n?)+", replace = "" }, # remove co-author information