Skip to content

Commit

Permalink
Merge pull request #39 from AkihiroSuda/postface
Browse files Browse the repository at this point in the history
Support postface
  • Loading branch information
estesp authored Nov 11, 2022
2 parents a89d1f3 + 00250d1 commit d813e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type release struct {
Previous string `toml:"previous"`
PreRelease bool `toml:"pre_release"`
Preface string `toml:"preface"`
Postface string `toml:"postface"`
Notes map[string]note `toml:"notes"`
BreakingChanges map[string]*change `toml:"breaking"`

Expand Down Expand Up @@ -366,6 +367,7 @@ This tool should be ran from the root of the project repository for a new releas

// Remove trailing new lines
r.Preface = strings.TrimRightFunc(r.Preface, unicode.IsSpace)
r.Postface = strings.TrimRightFunc(r.Postface, unicode.IsSpace)

tmpl, err := getTemplate(context)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ This release has no dependency changes
Previous release can be found at [{{.Previous}}](https://github.com/{{.GithubRepo}}/releases/tag/{{.Previous}})
{{- end}}
{{.Postface}}
`
)

0 comments on commit d813e7e

Please sign in to comment.