From 7f3c149dd78c17013293b9241a23efc5b8643809 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 5 Dec 2023 09:10:20 -0500 Subject: [PATCH 1/3] build: add changelog config --- .goreleaser.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index b72eb4d..a8c8655 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -103,6 +103,27 @@ release: owner: circonus-labs prerelease: auto +changelog: + use: git + sort: desc + abbrev: 0 + groups: + - title: Features + regexp: "^.*feat[(\\w)]*:+.*$" + order: 0 + - title: 'Bug fixes' + regexp: "^.*fix[(\\w)]*:+.*$" + order: 1 + - title: 'Dependencies' + regexp: "^.*build(deps):+.*$" + order: 2 + - title: Others + order: 999 + filters: + exclude: + - '^docs:' + - typo + checksum: name_template: "{{.ProjectName}}_checksums.txt" From 096f112a1247f8ae392b97aa401ca4a89d3e6d2b Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 5 Dec 2023 09:11:21 -0500 Subject: [PATCH 2/3] build: skip go in lint workflow --- .github/workflows/golangci-lint.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a913e88..03f7649 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,13 +11,9 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 - with: - go-version: '1.19' - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: latest args: --timeout=5m - # skip-cache: true From 30e8795a839a92104abb46e7c78a517e827987df Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 5 Dec 2023 16:48:06 -0500 Subject: [PATCH 3/3] fix: config test with no config, should get error --- internal/config/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 1dead35..4d232f7 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -22,8 +22,8 @@ func TestValidate(t *testing.T) { t.Log("no config") { err := Validate() - if err != nil { - t.Fatalf("Expected NO error, got (%s)", err) + if err == nil { + t.Fatal("expected error") } } }