From c06f7f2bc96a3660478c100e6229ca49ef86f227 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Tue, 12 May 2026 13:59:57 +0100 Subject: [PATCH] fix(test): rename Url field to URL to satisfy revive var-naming Lint (golangci-lint revive) requires acronyms like URL to be all-caps in Go field names. Adjusts the motivation config test struct and its assertion accordingly so the release-please PR can pass CI. Co-authored-by: Cursor --- motivation_config_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motivation_config_test.go b/motivation_config_test.go index 6a9d131..4464dd5 100644 --- a/motivation_config_test.go +++ b/motivation_config_test.go @@ -21,7 +21,7 @@ type motivationConfig struct { Service struct { Database struct { Poolsize string `json:"poolsize"` - Url string `json:"url"` + URL string `json:"url"` } `json:"database"` Name string `json:"name"` Subservice struct { @@ -100,8 +100,8 @@ DATABASE_URL=postgres://dotenv if cfg.Service.Name != "my-service" { t.Fatalf("Service.Name=%q", cfg.Service.Name) } - if cfg.Service.Database.Url != "postgres://localhost:5432/db" { - t.Fatalf("Service.Database.Url=%q", cfg.Service.Database.Url) + if cfg.Service.Database.URL != "postgres://localhost:5432/db" { + t.Fatalf("Service.Database.URL=%q", cfg.Service.Database.URL) } if cfg.Service.Database.Poolsize != "10" { t.Fatalf("Service.Database.Poolsize=%q", cfg.Service.Database.Poolsize)