From 1f930527660452e569d10576c3b22a82ecc49089 Mon Sep 17 00:00:00 2001 From: DeadNews Date: Sun, 7 Apr 2024 00:22:51 +0200 Subject: [PATCH] docs(changelog): add `git-cliff` (#67) * chore(deps): update indirect dependencies * chore(vscode): enable `go.diagnostic.vulncheck` * ci(github): update `goreleaser` job * docs(changelog): add `git-cliff` * docs(readme): update badges --- .github/workflows/main.yml | 9 ++- .goreleaser.yaml | 31 ++++++++- .typos.toml | 2 + .vscode/settings.json | 7 +- CHANGELOG.md | 134 +++++++++++++++++++++++++++++++++++++ Dockerfile | 2 +- Makefile | 21 +++++- README.md | 11 ++- cliff.toml | 85 +++++++++++++++++++++++ go.mod | 6 +- go.sum | 51 ++------------ 11 files changed, 297 insertions(+), 62 deletions(-) create mode 100644 .typos.toml create mode 100644 CHANGELOG.md create mode 100644 cliff.toml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d33df2e..ddf280d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 + with: + go-version: stable - name: Lint code uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 @@ -32,6 +34,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 + with: + go-version: stable - name: Get govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest @@ -63,8 +67,9 @@ jobs: goreleaser: name: GoReleaser - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' needs: [lint, check-deps, tests] + environment: github-releases permissions: contents: write runs-on: ubuntu-latest @@ -74,6 +79,8 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v5 + with: + go-version: stable - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7f7b3f6..3749fa4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,15 +3,42 @@ builds: release: prerelease: auto + footer: | + See [the CHANGELOG]({{ .GitURL }}/blob/main/CHANGELOG.md) for more details. changelog: sort: asc + use: git + filters: + exclude: + - ^chore + - ^test" + - ^(ci|build|chore)\(deps.*\) + groups: + - title: Dependencies + regexp: ^fix\(deps.*\) + order: 300 + - title: Features + regexp: ^feat + order: 100 + - title: Security + regexp: ^sec + order: 150 + - title: Bug fixes + regexp: ^(fix|refactor) + order: 200 + - title: Documentation + regexp: ^docs + order: 400 + - title: Build process + regexp: ^(build|ci) + order: 500 nfpms: - id: "{{ .ProjectName }}" description: Go Project Template - homepage: https://github.com/DeadNews/{{ .ProjectName }} - maintainer: DeadNews + homepage: "{{ .GitURL }}" + maintainer: DeadNews formats: - deb bindir: /usr/bin diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..bf27f28 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["CHANGELOG.md"] diff --git a/.vscode/settings.json b/.vscode/settings.json index 90e6193..0dc4b8a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,13 @@ { "[go]": { - "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": "explicit" - } + }, + "editor.formatOnSave": true }, - "go.useLanguageServer": true, + "go.diagnostic.vulncheck": "Imports", "go.lintTool": "golangci-lint", + "go.useLanguageServer": true, "gopls": { "formatting.gofumpt": true } diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2abf159 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,134 @@ +# Changelog + +## [2.0.4-beta.3](https://github.com/DeadNews/deadnews-template-go/compare/v2.0.3...v2.0.4-beta.3) - 2024-04-06 + +### ๐Ÿ“š Documentation + +- _(changelog)_ add `git-cliff` - ([072a4fd](https://github.com/DeadNews/deadnews-template-go/commit/072a4fdaf9271966695288ee4988bcd5217d42fc)) +- _(changelog)_ add `git-cliff` - ([08102e5](https://github.com/DeadNews/deadnews-template-go/commit/08102e5c77c9189ab3104bbd7070c755662609ef)) +- _(readme)_ update badges - ([61ac858](https://github.com/DeadNews/deadnews-template-go/commit/61ac858d692fe6e291574505ab02e0e76fcf22a4)) +- _(readme)_ update badges - ([cb62cf2](https://github.com/DeadNews/deadnews-template-go/commit/cb62cf25c608345c34073f28ca33993f1e946eeb)) +- _(readme)_ update badges - ([e171584](https://github.com/DeadNews/deadnews-template-go/commit/e171584c9c59e14a67747491b0804189ec3b242a)) +- _(readme)_ add badges - ([b0e89dc](https://github.com/DeadNews/deadnews-template-go/commit/b0e89dc0b9c1191933101d2ba7f450a731988f1f)) + +### ๐Ÿงน Chores + +- _(makefile)_ update - ([aa7e699](https://github.com/DeadNews/deadnews-template-go/commit/aa7e69997481479e4f0d62a03798d739409e58a8)) +- _(vscode)_ enable `go.diagnostic.vulncheck` - ([450bbb3](https://github.com/DeadNews/deadnews-template-go/commit/450bbb33fbb9ee7141dff214105dcac40594d4de)) + +### ๐Ÿ‘ท Build + +- _(dockerfile)_ explicitly disable `cgo` - ([d863cfe](https://github.com/DeadNews/deadnews-template-go/commit/d863cfe6533db65d19c5afc3759fe08b621616c6)) +- _(dockerfile)_ explicitly disable `cgo` - ([44bc4e3](https://github.com/DeadNews/deadnews-template-go/commit/44bc4e3ccc5c4363af529485ca709ab2e9435f16)) +- _(dockerfile)_ explicitly disable `cgo` - ([9acff34](https://github.com/DeadNews/deadnews-template-go/commit/9acff34cd3bd4f065d519ddbc1c95e3f41566aaa)) + +### โš™๏ธ CI/CD + +- _(github)_ update `goreleaser` job - ([21fc62c](https://github.com/DeadNews/deadnews-template-go/commit/21fc62c7a3998d4956d01a7b24db16a891567f2e)) +- _(github)_ update `goreleaser` job - ([0eb95a7](https://github.com/DeadNews/deadnews-template-go/commit/0eb95a70407f8bb4f74b0b6e6fce58eb046d7b57)) +- _(github)_ update `goreleaser` job - ([f33ebe3](https://github.com/DeadNews/deadnews-template-go/commit/f33ebe34164b9402606e88f2825629834c98a666)) +- _(github)_ update `goreleaser` job - ([1d3464e](https://github.com/DeadNews/deadnews-template-go/commit/1d3464e2051cc81b068b7386ccee034beed63c14)) +- _(pre-commit)_ replace `hadolint-docker` with `hadolint-py` - ([944f617](https://github.com/DeadNews/deadnews-template-go/commit/944f617e6f5ac6913739c760979ae31ce5473d82)) + +### โฌ†๏ธ Dependencies + +- _(deps)_ update module github.com/stretchr/testify to v1.9.0 ([#62](https://github.com/DeadNews/deadnews-template-python/issues/62)) - ([3f2b941](https://github.com/DeadNews/deadnews-template-go/commit/3f2b9418c6f51f0622184bb5fd31a9c1a1ca7da8)) + +## [2.0.3](https://github.com/DeadNews/deadnews-template-go/compare/v2.0.2...v2.0.3) - 2024-01-24 + +### ๐Ÿ‘ท Build + +- _(docker)_ update `Dockerfile` - ([83b98a4](https://github.com/DeadNews/deadnews-template-go/commit/83b98a41fbaa9d12745ce357c469f807cb1ba121)) +- _(docker)_ add `docker-compose` - ([fc59f04](https://github.com/DeadNews/deadnews-template-go/commit/fc59f04a8c95e230dc2157f9285a0f295ffb0cac)) +- _(goreleaser)_ update config ([#54](https://github.com/DeadNews/deadnews-template-python/issues/54)) - ([b85c149](https://github.com/DeadNews/deadnews-template-go/commit/b85c1492d90a1b2fef35f57711628c1088deba79)) + +### โš™๏ธ CI/CD + +- _(pre-commit)_ add `checkmake` hook - ([16c1e3f](https://github.com/DeadNews/deadnews-template-go/commit/16c1e3fd97f15ef4e4b4f1344649dba56cb29090)) + +## [2.0.2](https://github.com/DeadNews/deadnews-template-go/compare/v2.0.1...v2.0.2) - 2024-01-07 + +### ๐Ÿ“š Documentation + +- _(readme)_ update badges - ([6c6735a](https://github.com/DeadNews/deadnews-template-go/commit/6c6735a1d53cc4a02ae9c59de4fe3f92eeea178a)) + +### ๐Ÿ‘ท Build + +- _(docker)_ update `Dockerfile` - ([1e825c5](https://github.com/DeadNews/deadnews-template-go/commit/1e825c5aa9ee4c5b8f27b5ace518c726dab848c4)) +- _(dockerfile)_ update paths - ([2ac9e66](https://github.com/DeadNews/deadnews-template-go/commit/2ac9e66809d7cf82750c0df3324408deec7d7ec5)) + +### โฌ†๏ธ Dependencies + +- _(deps)_ update module github.com/labstack/echo/v4 to v4.11.4 ([#51](https://github.com/DeadNews/deadnews-template-python/issues/51)) - ([cb037ae](https://github.com/DeadNews/deadnews-template-go/commit/cb037ae81263f354fa2fe054255d6aaf7cfdef89)) +- _(deps)_ update module github.com/labstack/echo/v4 to v4.11.3 ([#45](https://github.com/DeadNews/deadnews-template-python/issues/45)) - ([d6e4a0c](https://github.com/DeadNews/deadnews-template-go/commit/d6e4a0cfbae9bac1ece6132fe66d1c57f672843f)) +- _(deps)_ update module github.com/labstack/echo/v4 to v4.11.2 ([#42](https://github.com/DeadNews/deadnews-template-python/issues/42)) - ([1bf8807](https://github.com/DeadNews/deadnews-template-go/commit/1bf8807742c84ae90578448a5f50457704b8e139)) + +## [2.0.1](https://github.com/DeadNews/deadnews-template-go/compare/v2.0.0...v2.0.1) - 2023-09-21 + +### ๐Ÿ“š Documentation + +- _(readme)_ update badges - ([f5d121a](https://github.com/DeadNews/deadnews-template-go/commit/f5d121a5112a3c0308920d0bc038eb6739b2efc6)) +- _(readme)_ update badge - ([d04944b](https://github.com/DeadNews/deadnews-template-go/commit/d04944b7cd4301d7553baca3ebea3c83a49dd289)) +- _(readme)_ update badge - ([079a2af](https://github.com/DeadNews/deadnews-template-go/commit/079a2af6ab083bb992c0dad6f02fd709898a33ee)) + +### ๐Ÿ‘ท Build + +- _(docker)_ use more explicit tags - ([882ca05](https://github.com/DeadNews/deadnews-template-go/commit/882ca0589a7dab7aa2f01dd295ef44bef50f8d31)) +- _(docker)_ update stage alias - ([bf55221](https://github.com/DeadNews/deadnews-template-go/commit/bf55221ff3d76404549d321c3e0355bbec73ff31)) + +### โš™๏ธ CI/CD + +- use `reusable workflow` ([#35](https://github.com/DeadNews/deadnews-template-python/issues/35)) - ([b718e3f](https://github.com/DeadNews/deadnews-template-go/commit/b718e3ff9362fedf7ad1f2a05490243ce0b29756)) + +## [2.0.0](https://github.com/DeadNews/deadnews-template-go/compare/v1.0.0...v2.0.0) - 2023-09-19 + +### ๐Ÿš€ Features + +- change the sample application ([#33](https://github.com/DeadNews/deadnews-template-python/issues/33)) - ([c22ecdf](https://github.com/DeadNews/deadnews-template-go/commit/c22ecdf0fca8be184ddc461528334cee0fd8d39f)) + +### โš™๏ธ CI/CD + +- _(dockerfile)_ add `label` - ([48bc20d](https://github.com/DeadNews/deadnews-template-go/commit/48bc20dfbb5301c8d02c6da7ee53b69fc43fa605)) +- updete `makefile` ([#34](https://github.com/DeadNews/deadnews-template-python/issues/34)) - ([0252d60](https://github.com/DeadNews/deadnews-template-go/commit/0252d602ef9acd17f0e99f233f05e57611a65c8c)) +- enable more linters ([#31](https://github.com/DeadNews/deadnews-template-python/issues/31)) - ([cb5b2cf](https://github.com/DeadNews/deadnews-template-go/commit/cb5b2cfae46db812d3582ddff6788e24e3e8d07b)) +- use `stable/oldstable` aliases in tests matrix ([#28](https://github.com/DeadNews/deadnews-template-python/issues/28)) - ([9938420](https://github.com/DeadNews/deadnews-template-go/commit/99384209c0b8b2247c24725b9b2a412258a0d587)) + +## [1.0.0](https://github.com/DeadNews/deadnews-template-go/compare/v0.0.7...v1.0.0) - 2023-07-24 + +### ๐Ÿ“š Documentation + +- fix `workflow` name - ([19759e7](https://github.com/DeadNews/deadnews-template-go/commit/19759e7b07743ee9873ad7427d8773594d032a76)) +- fix `workflow` name - ([54ea0d4](https://github.com/DeadNews/deadnews-template-go/commit/54ea0d4c8c4180241a4286fa67b0e267b2271878)) + +### ๐Ÿงน Chores + +- clean up - ([8693b3b](https://github.com/DeadNews/deadnews-template-go/commit/8693b3b2ea89cef678ca66b222b46900dacacb5f)) + +### โš™๏ธ CI/CD + +- _(renovate)_ adjust schedule - ([4ddda1e](https://github.com/DeadNews/deadnews-template-go/commit/4ddda1e5c0670a53844145806aca62567ff92279)) +- _(renovate)_ use shared config - ([6b46c46](https://github.com/DeadNews/deadnews-template-go/commit/6b46c46320e33ce46330ae880c779a49954e66e2)) +- _(renovate)_ adjust schedule - ([41b7867](https://github.com/DeadNews/deadnews-template-go/commit/41b7867002f6f56f8085dbba4a786ebb1f81f3d2)) +- disable `codeql` schedule - ([7e56036](https://github.com/DeadNews/deadnews-template-go/commit/7e56036c15fed9972cb15c95ef4c857b13a4c946)) +- enable more linters - ([4e83528](https://github.com/DeadNews/deadnews-template-go/commit/4e83528a128ee8800672e864a0619e5540c1df61)) +- use `digest pinning` ([#23](https://github.com/DeadNews/deadnews-template-python/issues/23)) - ([79e7d5a](https://github.com/DeadNews/deadnews-template-go/commit/79e7d5a5e97d29c5f150da9e377d551fe71bb287)) +- update `workflows` ([#19](https://github.com/DeadNews/deadnews-template-python/issues/19)) - ([46d7970](https://github.com/DeadNews/deadnews-template-go/commit/46d7970a069287a5b44c06214f3dfa4f8f437993)) + +### โฌ†๏ธ Dependencies + +- _(deps)_ update module github.com/stretchr/testify to v1.8.4 ([#21](https://github.com/DeadNews/deadnews-template-python/issues/21)) - ([ebb7b19](https://github.com/DeadNews/deadnews-template-go/commit/ebb7b190cd8431de541ed4df60d810db4b333729)) + +## [0.0.7](https://github.com/DeadNews/deadnews-template-go/compare/v0.0.6...v0.0.7) - 2023-05-04 + +### ๐Ÿš€ Features + +- rename project - ([e74bbef](https://github.com/DeadNews/deadnews-template-go/commit/e74bbef1c7853e88ecf1c533cee2fdd7a1d2470c)) + +### โš™๏ธ CI/CD + +- _(pre-commit)_ comment `golangci-lint` hook - ([1554393](https://github.com/DeadNews/deadnews-template-go/commit/155439337ebe1b981e60909a528de4904bed8d96)) +- _(pre-commit)_ update hooks - ([b0f895d](https://github.com/DeadNews/deadnews-template-go/commit/b0f895dd242c68bc8453ddf96ff08c9d4252df51)) +- _(renovate)_ replace `dependabot` with `renovate` - ([7205a41](https://github.com/DeadNews/deadnews-template-go/commit/7205a41b02a937d32add946e4b5cb5a97a4261b7)) +- test `govulncheck` - ([fe39d19](https://github.com/DeadNews/deadnews-template-go/commit/fe39d1933ee84df7abf08d10f92526feac770a50)) + + diff --git a/Dockerfile b/Dockerfile index d077de1..67e4ed8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=${GOCACHE} \ # Deploy the application binary into a lean image. FROM gcr.io/distroless/static-debian12:latest@sha256:6dcc833df2a475be1a3d7fc951de90ac91a2cb0be237c7578b88722e48f2e56f AS runtime -LABEL maintainer "DeadNews " +LABEL maintainer "DeadNews " ENV GO_PORT=1271 diff --git a/Makefile b/Makefile index ece9283..573dc04 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all clean default run build checks pc test +.PHONY: all clean default run build update checks pc test default: checks @@ -11,6 +11,10 @@ build: goreleaser: goreleaser --clean --snapshot --skip=publish +update: + go get -u ./... + go mod tidy + install: pre-commit install @@ -21,3 +25,18 @@ pc: test: go test -v -race -covermode=atomic -coverprofile='coverage.txt' ./... + +bumped: + git cliff --bumped-version + +# make release-tag_name +# make release-$(git cliff --bumped-version)-alpha.0 +release-%: checks + git cliff -o CHANGELOG.md --tag $* + pre-commit run --files CHANGELOG.md || pre-commit run --files CHANGELOG.md + git add CHANGELOG.md + git commit -m "chore(release): prepare for $*" + git push + git tag -a $* -m "chore(release): $*" + git push origin $* + git tag --verify $* diff --git a/README.md b/README.md index d912b89..a0b8432 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,12 @@ > Go Project Template [![GitHub: Release](https://img.shields.io/github/v/release/deadnews/deadnews-template-go?logo=github&logoColor=white)](https://github.com/deadnews/deadnews-template-go/releases/latest) -[![Go: Reference](https://pkg.go.dev/badge/github.com/DeadNews/deadnews-template-go.svg)](https://pkg.go.dev/github.com/DeadNews/deadnews-template-go) -[![Go: Report Card](https://goreportcard.com/badge/github.com/DeadNews/deadnews-template-go)](https://goreportcard.com/report/github.com/DeadNews/deadnews-template-go) -[![CI: main](https://img.shields.io/github/actions/workflow/status/deadnews/deadnews-template-go/main.yml?branch=main&logo=github&logoColor=white&label=main)](https://github.com/deadnews/deadnews-template-go/actions/workflows/main.yml) +[![Docker: ghcr](https://img.shields.io/badge/docker-gray.svg?logo=docker&logoColor=white)](https://github.com/deadnews/deadnews-template-go/pkgs/container/deadnews-template-go) +[![Go: Reference](https://pkg.go.dev/badge/github.com/deadnews/deadnews-template-go.svg)](https://pkg.go.dev/github.com/deadnews/deadnews-template-go) +[![Go: Report Card](https://goreportcard.com/badge/github.com/deadnews/deadnews-template-go)](https://goreportcard.com/report/github.com/deadnews/deadnews-template-go) [![CI: pre-commit](https://results.pre-commit.ci/badge/github/DeadNews/deadnews-template-go/main.svg)](https://results.pre-commit.ci/latest/github/deadnews/deadnews-template-go/main) -[![Coverage](https://img.shields.io/codecov/c/github/deadnews/deadnews-template-go?token=OCZDZIYPMC&logo=codecov&logoColor=white)](https://codecov.io/gh/deadnews/deadnews-template-go) -[![Docker: ghcr](https://img.shields.io/badge/docker-ghcr-blue.svg?logo=github&logoColor=white)](https://github.com/deadnews/deadnews-template-go/pkgs/container/deadnews-template-go) -[![Docker: image-size](https://ghcr-badge.egpl.dev/deadnews/deadnews-template-go/size?color=%230e80c0)](https://github.com/deadnews/deadnews-template-go/pkgs/container/deadnews-template-go) +[![CI: main](https://img.shields.io/github/actions/workflow/status/deadnews/deadnews-template-go/main.yml?branch=main&logo=github&logoColor=white&label=main)](https://github.com/deadnews/deadnews-template-go/actions/workflows/main.yml) +[![CI: coverage](https://img.shields.io/codecov/c/github/deadnews/deadnews-template-go?token=OCZDZIYPMC&logo=codecov&logoColor=white)](https://codecov.io/gh/deadnews/deadnews-template-go) ## Installation diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..3b7f0c7 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,85 @@ +# git-cliff ~ configuration file +# https://git-cliff.org/docs/configuration + +[changelog] +header = """ +# Changelog\n +""" +postprocessors = [ + { pattern = '', replace = "https://github.com/DeadNews/deadnews-template-python" }, +] +body = """ +{%- macro remote_url() -%} + https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }} +{%- endmacro -%} + +{% macro print_commit(commit) -%} + - {% if commit.scope %}_({{ commit.scope }})_ {% endif %}\ + {% if commit.breaking %}[**breaking**] {% endif %}\ + {{ commit.message }} - \ + ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\ +{% endmacro -%} + +{% if version %}\ + {% if previous.version %}\ + ## [{{ version | trim_start_matches(pat="v") }}]\ + ({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} + {% else %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + {% endif %}\ +{% else %}\ + ## [unreleased] +{% endif %}\ + +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits + | filter(attribute="scope") + | sort(attribute="scope") %} + {{ self::print_commit(commit=commit) }} + {%- endfor -%} + {% raw %}\n{% endraw %}\ + {%- for commit in commits %} + {%- if not commit.scope -%} + {{ self::print_commit(commit=commit) }} + {% endif -%} + {% endfor -%} +{% endfor %}\n +""" +footer = """ + +""" +trim = true + +[git] +conventional_commits = true # parse the commits based on https://www.conventionalcommits.org +filter_unconventional = true # filter out the commits that are not conventional +split_commits = false # process each line of a commit as an individual commit +commit_preprocessors = [ + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](/issues/${2}))" }, # Replace github issue numbers + { pattern = " +", replace = " " }, # Remove multiple whitespaces +] +commit_parsers = [ + { message = "^(ci|build|chore)\\(deps.*\\)", skip = true }, + { message = "^chore\\(release\\)", skip = true }, + { message = "^fix\\(deps.*\\)", group = "โฌ†๏ธ Dependencies" }, + { message = "^feat", group = "๐Ÿš€ Features" }, + { message = "^fix", group = "๐Ÿ› Bug fixes" }, + { message = "^refactor", group = "๐Ÿšœ Refactor" }, + { message = "^doc", group = "๐Ÿ“š Documentation" }, + { message = "^perf", group = "โšก Performance" }, + { message = "^style", group = "๐ŸŽจ Styling" }, + { message = "^test", group = "๐Ÿงช Testing" }, + { message = "^chore", group = "๐Ÿงน Chores" }, + { body = ".*security", group = "๐Ÿ›ก๏ธ Security" }, + { message = "^build", group = "๐Ÿ‘ท Build" }, + { message = "^ci", group = "โš™๏ธ CI/CD" }, + { message = "^revert", group = "โ—€๏ธ Revert" }, +] +protect_breaking_commits = true +filter_commits = false # filter out the commits that are not matched by commit parsers +tag_pattern = "v[0-9].*" # regex for matching git tags +skip_tags = "" # drop commits from the changelog +ignore_tags = "rc|beta|alpha" # include ignored commits into the next tag +topo_order = false # sort the tags topologically +sort_commits = "newest" # sort the commits inside sections by oldest/newest order diff --git a/go.mod b/go.mod index 7400645..fa6d21a 100644 --- a/go.mod +++ b/go.mod @@ -16,9 +16,9 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect - golang.org/x/crypto v0.17.0 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/crypto v0.22.0 // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/sys v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 6947ca4..e3e8347 100644 --- a/go.sum +++ b/go.sum @@ -1,76 +1,37 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/labstack/echo/v4 v4.11.1 h1:dEpLU2FLg4UVmvCGPuk/APjlH6GDpbEPti61srUUUs4= -github.com/labstack/echo/v4 v4.11.1/go.mod h1:YuYRTSM3CHs2ybfrL8Px48bO6BAnYIN4l8wSTMP6BDQ= -github.com/labstack/echo/v4 v4.11.2 h1:T+cTLQxWCDfqDEoydYm5kCobjmHwOwcv4OJAPHilmdE= -github.com/labstack/echo/v4 v4.11.2/go.mod h1:UcGuQ8V6ZNRmSweBIJkPvGfwCMIlFmiqrPqiEBfPYws= -github.com/labstack/echo/v4 v4.11.3 h1:Upyu3olaqSHkCjs1EJJwQ3WId8b8b1hxbogyommKktM= -github.com/labstack/echo/v4 v4.11.3/go.mod h1:UcGuQ8V6ZNRmSweBIJkPvGfwCMIlFmiqrPqiEBfPYws= github.com/labstack/echo/v4 v4.11.4 h1:vDZmA+qNeh1pd/cCkEicDMrjtrnMGQ1QFI9gWN1zGq8= github.com/labstack/echo/v4 v4.11.4/go.mod h1:noh7EvLwqDsmh/X/HWKPUl1AjzJrhyptRyEbQJfxen8= -github.com/labstack/gommon v0.4.0 h1:y7cvthEAEbU0yHOf4axH8ZG2NH8knB9iNSoTO8dyIk8= -github.com/labstack/gommon v0.4.0/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM= github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= -github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=