Add template filepath for release tool

This allows a project to have a TEMPLATE file in the root of the repo to
be used with the release tool.  If they don't have this file and did not
specify a custom file then it will use the compiled in template in the
release tool.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-10-30 13:15:56 -04:00
parent 5fb3a0e0cf
commit adc502b790
3 changed files with 37 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
package main
const releaseNotes = `Welcome to the release of {{.ProjectName}} {{.Version}}!
const (
defaultTemplateFile = "TEMPLATE"
releaseNotes = `Welcome to the release of {{.ProjectName}} {{.Version}}!
{{if .PreRelease}}
*This is a pre-release of {{.ProjectName}}*
{{- end}}
@@ -33,3 +35,4 @@ Previous release can be found at [{{.Previous}}](https://github.com/{{.GithubRep
* {{$dep.Previous}} -> {{$dep.Commit}} **{{$dep.Name}}**
{{- end}}
`
)