From 4ae8ce07162f7ef5a585cfb9d7fdc9377dd2a47e Mon Sep 17 00:00:00 2001 From: Songmu Date: Tue, 30 Aug 2022 01:36:40 +0900 Subject: [PATCH] adjsut template args --- tagpr.go | 2 +- template.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tagpr.go b/tagpr.go index 32f6af8..340140b 100644 --- a/tagpr.go +++ b/tagpr.go @@ -357,7 +357,7 @@ func (tp *tagpr) Run(ctx context.Context) error { pt := newPRTmpl(tmpl) prText, err := pt.Render(&tmplArg{ NextVersion: nextVer.Tag(), - RCBranch: rcBranch, + Branch: rcBranch, Changelog: releases.Body, }) if err != nil { diff --git a/template.go b/template.go index 9f5552f..59c1d46 100644 --- a/template.go +++ b/template.go @@ -10,7 +10,7 @@ const defaultTmplStr = `Release for {{.NextVersion}} This pull request is for the next release as {{.NextVersion}} created by [tagpr](https://github.com/Songmu/tagpr). Merging it will tag {{.NextVersion}} to the merge commit and create a GitHub release. -You can modify this branch "{{.RCBranch}}" directly before merging if you want to change the next version number or other files for the release. +You can modify this branch "{{.Branch}}" directly before merging if you want to change the next version number or other files for the release.
How to change the next version as you like @@ -39,7 +39,7 @@ func init() { } type tmplArg struct { - NextVersion, RCBranch, Changelog string + NextVersion, Branch, Changelog string } func newPRTmpl(tmpl *template.Template) *prTmpl {