From 8d236ea8e2ce6b5670994d7a8b7020be15524305 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 9 Oct 2022 08:02:36 +0000 Subject: [PATCH 1/3] [tagpr] prepare for the next release --- .github/release.yml | 4 ++++ .tagpr | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/release.yml create mode 100644 .tagpr diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..b0c5175 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,4 @@ +changelog: + exclude: + labels: + - tagpr diff --git a/.tagpr b/.tagpr new file mode 100644 index 0000000..01258c7 --- /dev/null +++ b/.tagpr @@ -0,0 +1,35 @@ +# config file for the tagpr in git config format +# The tagpr generates the initial configuration, which you can rewrite to suit your environment. +# CONFIGURATIONS: +# tagpr.releaseBranch +# Generally, it is "main." It is the branch for releases. The pcpr tracks this branch, +# creates or updates a pull request as a release candidate, or tags when they are merged. +# +# tagpr.versionFile +# Versioning file containing the semantic version needed to be updated at release. +# It will be synchronized with the "git tag". +# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc. +# Sometimes the source code file, such as version.go or Bar.pm, is used. +# If you do not want to use versioning files but only git tags, specify the "-" string here. +# You can specify multiple version files by comma separated strings. +# +# tagpr.vPrefix +# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true) +# This is only a tagging convention, not how it is described in the version file. +# +# tagpr.changelog (Optional) +# Flag whether or not changelog is added or changed during the release. +# +# tagpr.command (Optional) +# Command to change files just before release. +# +# tagpr.tmplate (Optional) +# Pull request template in go template format +# +# tagpr.release (Optional) +# GitHub Release creation behavior after tagging [true, draft, false] +# If this value is not set, the release is to be created. +[tagpr] + vPrefix = true + releaseBranch = main + versionFile = - From 742625fe380c871b3d5c0802eedc4f04e45078e0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 9 Oct 2022 08:02:36 +0000 Subject: [PATCH 2/3] [tagpr] update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b34bdd7..fa933ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [v0.5.1](https://github.com/k1LoW/grpcstub/compare/v0.5.0...v0.5.1) - 2022-10-09 +- Use tagpr by @k1LoW in https://github.com/k1LoW/grpcstub/pull/15 + ## [v0.5.0](https://github.com/k1LoW/grpcstub/compare/v0.4.0...v0.5.0) (2022-07-15) * Support TLS [#14](https://github.com/k1LoW/grpcstub/pull/14) ([k1LoW](https://github.com/k1LoW)) From be0ae06bd0d179c8a9fd88fa035cdd3b536f30a5 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Sun, 9 Oct 2022 17:03:51 +0900 Subject: [PATCH 3/3] Setup tagpr --- .tagpr | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.tagpr b/.tagpr index 01258c7..02a8c69 100644 --- a/.tagpr +++ b/.tagpr @@ -33,3 +33,4 @@ vPrefix = true releaseBranch = main versionFile = - + command = "make prerelease_for_tagpr" diff --git a/Makefile b/Makefile index 452f073..5d9fdc5 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,11 @@ prerelease: git commit -m'Bump up version number' git tag ${VER} +prerelease_for_tagpr: + go mod tidy + gocredits -w . + git add CHANGELOG.md CREDITS go.mod go.sum + release: git push origin main --tag