Files
goreleaser/pipeline/snapshot/snapshot.go
T

21 lines
388 B
Go
Raw Normal View History

2017-12-02 19:53:19 -02:00
package snapshot
import (
"github.com/goreleaser/goreleaser/context"
)
// Pipe for checksums
type Pipe struct{}
func (Pipe) String() string {
return "generating changelog"
}
// Default sets the pipe defaults
func (Pipe) Default(ctx *context.Context) error {
if ctx.Config.Snapshot.NameTemplate == "" {
ctx.Config.Snapshot.NameTemplate = "SNAPSHOT-{{ .Commit }}"
}
return nil
}