From af6875ec69ec68536dc03c5d0976643dab0c07c5 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Sun, 30 Oct 2022 00:18:08 +0100 Subject: [PATCH 1/3] Run tests on Golang versions 1.19 & 1.18 --- .github/workflows/main.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26f918e..fc2fe84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,8 +18,8 @@ jobs: fail-fast: false matrix: go: - - '1.17' - '1.18' + - '1.19' steps: - name: Checkout uses: actions/checkout@v3 @@ -53,7 +53,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.18' + go-version: '1.19' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3.2.0 with: diff --git a/README.md b/README.md index b8df82d..79d6ec6 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Coverage Status](https://coveralls.io/repos/github/bodgit/plumbing/badge.svg?branch=master)](https://coveralls.io/github/bodgit/plumbing?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/bodgit/plumbing)](https://goreportcard.com/report/github.com/bodgit/plumbing) [![GoDoc](https://godoc.org/github.com/bodgit/plumbing?status.svg)](https://godoc.org/github.com/bodgit/plumbing) +![Go version](https://img.shields.io/badge/Go-1.19-brightgreen.svg) ![Go version](https://img.shields.io/badge/Go-1.18-brightgreen.svg) -![Go version](https://img.shields.io/badge/Go-1.17-brightgreen.svg) plumbing ======== From ec8ba23ab3e0ba64d2e263e601319762678ad5f5 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Sun, 30 Oct 2022 00:18:55 +0100 Subject: [PATCH 2/3] Fix lint error --- .golangci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yaml b/.golangci.yaml index 3d57e3e..94477c8 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,6 +2,7 @@ linters: enable-all: true disable: + - dupword - exhaustivestruct - exhaustruct - nonamedreturns From 510c75407e4418232b1bcd7ce61ac7e197e64da1 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Sun, 30 Oct 2022 00:19:30 +0100 Subject: [PATCH 3/3] Use Github changelog for releases --- .github/release.yml | 20 ++++++++++++++++++++ .goreleaser.yml | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..a280db0 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,20 @@ +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: Breaking Changes + labels: + - breaking-change + - title: New Features + labels: + - enhancement + - title: Bug Fixes + labels: + - bug + - title: Documentation + labels: + - documentation + - title: Other Changes + labels: + - "*" diff --git a/.goreleaser.yml b/.goreleaser.yml index 8c37d5d..75e2a1f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,3 +3,5 @@ builds: - skip: true release: prerelease: auto +changelog: + use: github-native