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:
@@ -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}}
|
||||
`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user